Class: RuoteKit::Application::LaunchInfo
- Inherits:
-
Object
- Object
- RuoteKit::Application::LaunchInfo
- Defined in:
- lib/ruote-kit/resources/processes.rb
Instance Attribute Summary collapse
-
#definition ⇒ Object
Returns the value of attribute definition.
-
#fields ⇒ Object
Returns the value of attribute fields.
-
#variables ⇒ Object
Returns the value of attribute variables.
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ LaunchInfo
constructor
A new instance of LaunchInfo.
Constructor Details
#initialize(h = {}) ⇒ LaunchInfo
Returns a new instance of LaunchInfo.
105 106 107 108 109 110 111 112 113 114 |
# File 'lib/ruote-kit/resources/processes.rb', line 105 def initialize(h={}) @definition = h['definition'].strip @fields = h['fields'] @variables = h['variables'] if @definition.match(/^define /) && @definition.match(/\bend$/) @definition = 'Ruote.' + @definition end end |
Instance Attribute Details
#definition ⇒ Object
Returns the value of attribute definition.
103 104 105 |
# File 'lib/ruote-kit/resources/processes.rb', line 103 def definition @definition end |
#fields ⇒ Object
Returns the value of attribute fields.
103 104 105 |
# File 'lib/ruote-kit/resources/processes.rb', line 103 def fields @fields end |
#variables ⇒ Object
Returns the value of attribute variables.
103 104 105 |
# File 'lib/ruote-kit/resources/processes.rb', line 103 def variables @variables end |