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.
-
#display_version ⇒ Object
(String) Displayable version for RightScript (revision, etc.) or nil.
-
#external_inputs ⇒ Object
(Hash) a map of input names to CredentialLocations which must be retrieved by the instance or nil or empty.
-
#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
(String) RightScripts required packages as a space-delimited list of package names or empty.
-
#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.
-
#title ⇒ String
Human readable title.
Methods included from Serializable
Constructor Details
#initialize(*args) ⇒ RightScriptInstantiation
Returns a new instance of RightScriptInstantiation.
64 65 66 67 68 69 70 71 72 73 74 75 |
# File 'lib/right_agent/core_payload_types/right_script_instantiation.rb', line 64 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 @display_version = args[9] if args.size > 9 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 |
#display_version ⇒ Object
(String) Displayable version for RightScript (revision, etc.) or nil
62 63 64 |
# File 'lib/right_agent/core_payload_types/right_script_instantiation.rb', line 62 def display_version @display_version end |
#external_inputs ⇒ Object
(Hash) a map of input names to CredentialLocations which must be retrieved by the instance or nil or empty
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
(String) RightScripts required packages as a space-delimited list of package names or empty
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
78 79 80 |
# File 'lib/right_agent/core_payload_types/right_script_instantiation.rb', line 78 def serialized_members [ @nickname, @source, @parameters, @attachments, @packages, @id, @ready, @external_inputs, @input_flags, @display_version ] end |
#title ⇒ String
Human readable title
Return
86 87 88 89 90 91 92 |
# File 'lib/right_agent/core_payload_types/right_script_instantiation.rb', line 86 def title if @display_version "'#{nickname}' #{@display_version}" else nickname end end |