Class: RightScale::RightScriptInstantiation
- Includes:
- Serializable
- Defined in:
- lib/right_agent/core_payload_types/right_script_instantiation.rb
Overview
RightScript with parameters and attachments
Instance Attribute Summary collapse
-
#attachments ⇒ Object
(Array) RightScript attachments URLs, array of RightScriptAttachment.
-
#external_inputs ⇒ Object
(Array of SecureDocumentLocation) attributes that must be resolved by the instance.
-
#id ⇒ Object
(Integer) RightScript id.
-
#input_flags ⇒ Object
(Hash) nil or Hash of input name to flags (array of string tokens) indicating additional boolean properties of the input which are useful to the instance.
-
#nickname ⇒ Object
(String) RightScript name.
-
#packages ⇒ Object
(Array) RightScripts required packages.
-
#parameters ⇒ Object
(Hash) RightScript parameters Hash of parameters names with associated value.
-
#ready ⇒ Object
(Boolean) Whether script inputs are ready.
-
#source ⇒ Object
(String) RightScript source.
Instance Method Summary collapse
-
#initialize(*args) ⇒ RightScriptInstantiation
constructor
A new instance of RightScriptInstantiation.
-
#serialized_members ⇒ Object
Array of serialized fields given to constructor.
Methods included from Serializable
Constructor Details
#initialize(*args) ⇒ RightScriptInstantiation
Returns a new instance of RightScriptInstantiation.
61 62 63 64 65 66 67 68 69 70 71 |
# File 'lib/right_agent/core_payload_types/right_script_instantiation.rb', line 61 def initialize(*args) @nickname = args[0] if args.size > 0 @source = args[1] if args.size > 1 @parameters = args[2] if args.size > 2 @attachments = args[3] if args.size > 3 @packages = args[4] if args.size > 4 @id = args[5] if args.size > 5 @ready = args[6] if args.size > 6 @external_inputs = args[7] if args.size > 7 @input_flags = args[8] if args.size > 8 end |
Instance Attribute Details
#attachments ⇒ Object
(Array) RightScript attachments URLs, array of RightScriptAttachment
42 43 44 |
# File 'lib/right_agent/core_payload_types/right_script_instantiation.rb', line 42 def @attachments end |
#external_inputs ⇒ Object
(Array of SecureDocumentLocation) attributes that must be resolved by the instance
54 55 56 |
# File 'lib/right_agent/core_payload_types/right_script_instantiation.rb', line 54 def external_inputs @external_inputs end |
#id ⇒ Object
(Integer) RightScript id
48 49 50 |
# File 'lib/right_agent/core_payload_types/right_script_instantiation.rb', line 48 def id @id end |
#input_flags ⇒ Object
(Hash) nil or Hash of input name to flags (array of string tokens) indicating additional boolean properties of the input which are useful to the instance. the presence of the flag means true, absense means false.
59 60 61 |
# File 'lib/right_agent/core_payload_types/right_script_instantiation.rb', line 59 def input_flags @input_flags end |
#nickname ⇒ Object
(String) RightScript name
32 33 34 |
# File 'lib/right_agent/core_payload_types/right_script_instantiation.rb', line 32 def nickname @nickname end |
#packages ⇒ Object
(Array) RightScripts required packages
45 46 47 |
# File 'lib/right_agent/core_payload_types/right_script_instantiation.rb', line 45 def packages @packages end |
#parameters ⇒ Object
(Hash) RightScript parameters Hash of parameters names with associated value
39 40 41 |
# File 'lib/right_agent/core_payload_types/right_script_instantiation.rb', line 39 def parameters @parameters end |
#ready ⇒ Object
(Boolean) Whether script inputs are ready
51 52 53 |
# File 'lib/right_agent/core_payload_types/right_script_instantiation.rb', line 51 def ready @ready end |
#source ⇒ Object
(String) RightScript source
35 36 37 |
# File 'lib/right_agent/core_payload_types/right_script_instantiation.rb', line 35 def source @source end |
Instance Method Details
#serialized_members ⇒ Object
Array of serialized fields given to constructor
74 75 76 |
# File 'lib/right_agent/core_payload_types/right_script_instantiation.rb', line 74 def serialized_members [ @nickname, @source, @parameters, @attachments, @packages, @id, @ready, @external_inputs, @input_flags ] end |