lib/rundock/node.rb in rundock-0.2.9 vs lib/rundock/node.rb in rundock-0.2.10
- old
+ new
@@ -7,14 +7,21 @@
attr_reader :backend
def initialize(name, backend)
@name = name
@backend = backend
+ @operations = []
end
def add_operation(ope)
@operations = [] unless @operations
@operations << ope
+ end
+
+ def complete(scenario)
+ @operations.each do |ope|
+ ope.attributes[:nodeinfo] = scenario.node_info
+ end
end
def run
Logger.debug("run name: #{@name}")
if @operations.blank?