Class: HaveAPI::Fs::Components::InstanceCreate

Inherits:
ActionExecEdit show all
Defined in:
lib/haveapi/fs/components/instance_create.rb

Instance Attribute Summary

Attributes inherited from HaveAPI::Fs::Component

#atime, #context, #ctime, #mtime

Instance Method Summary collapse

Methods inherited from ActionExecEdit

#initialize, #read, #save, #save?, #writable?, #write

Methods inherited from File

#file?, #raw_close, #raw_open, #raw_read, #raw_sync, #raw_truncate, #raw_write, #read, #size, #write

Methods inherited from HaveAPI::Fs::Component

#abspath, #bound=, #bound?, children_reader, component, #contents, #directory?, #executable?, #file?, #find, inherited, #initialize, #invalid?, #invalidate, #parent, #path, #readable?, #reset, #setup, #times, #title, #unsaved?, #use, #writable?

Constructor Details

This class inherits a constructor from HaveAPI::Fs::Components::ActionExecEdit

Instance Method Details

#headerObject



5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/haveapi/fs/components/instance_create.rb', line 5

def header
  <<END
# This file is in YAML format. Lines beginning with a hash (#) are comments and
# are ignored. The new resource instance will be created once this file is saved
# and closed. The success of this operation can be later checked in
# actions/create/status.
# 
# Only required parameters that need to be set are uncommented by default.
# Parameters that are not specified when this file is closed will not be sent
# to the API.
#
# To cancel the operation, either do not save the file or save it empty.
END
end