Class: Rundock::Scenario

Inherits:
Object show all
Defined in:
lib/rundock/scenario.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeScenario

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_infoObject

Returns the value of attribute node_info.



4
5
6
# File 'lib/rundock/scenario.rb', line 4

def node_info
  @node_info
end

#nodesObject

Returns the value of attribute nodes.



3
4
5
# File 'lib/rundock/scenario.rb', line 3

def nodes
  @nodes
end

#tasksObject

Returns the value of attribute tasks.



5
6
7
# File 'lib/rundock/scenario.rb', line 5

def tasks
  @tasks
end

Instance Method Details

#runObject



12
13
14
# File 'lib/rundock/scenario.rb', line 12

def run
  @nodes.each(&:run)
end