Class: Rundock::Scenario
Instance Attribute Summary collapse
-
#node_info ⇒ Object
Returns the value of attribute node_info.
-
#nodes ⇒ Object
Returns the value of attribute nodes.
-
#tasks ⇒ Object
Returns the value of attribute tasks.
Instance Method Summary collapse
-
#initialize ⇒ Scenario
constructor
A new instance of Scenario.
- #run ⇒ Object
Constructor Details
#initialize ⇒ Scenario
Returns a new instance of Scenario.
7 8 9 10 |
# File 'lib/rundock/scenario.rb', line 7 def initialize @nodes = [] @node_info = {} end |
Instance Attribute Details
#node_info ⇒ Object
Returns the value of attribute node_info.
4 5 6 |
# File 'lib/rundock/scenario.rb', line 4 def node_info @node_info end |
#nodes ⇒ Object
Returns the value of attribute nodes.
3 4 5 |
# File 'lib/rundock/scenario.rb', line 3 def nodes @nodes end |
#tasks ⇒ Object
Returns the value of attribute tasks.
5 6 7 |
# File 'lib/rundock/scenario.rb', line 5 def tasks @tasks end |
Instance Method Details
#run ⇒ Object
12 13 14 |
# File 'lib/rundock/scenario.rb', line 12 def run @nodes.each(&:run) end |