lib/rundock/builder/scenario_builder.rb in rundock-0.4.16 vs lib/rundock/builder/scenario_builder.rb in rundock-0.5.0
- old
+ new
@@ -20,12 +20,12 @@
# use scenario file
build_scenario_with_file
end
- def build_task(tasks, backend, node_attributes)
- OperationBuilder.new(@options).build_task(tasks, backend, node_attributes)
+ def build_task(tasks, backend, target_attributes)
+ OperationBuilder.new(@options).build_task(tasks, backend, target_attributes)
end
private
def build_scenario_with_cli
@@ -35,11 +35,11 @@
end
def build_scenario_with_file
if @scenario_file
- type = [:main, :node_info, :tasks, :hooks]
+ type = [:main, :target_info, :tasks, :hooks]
scenario_data = {}
YAML.load_documents(@scenario_file).each_with_index do |data, idx|
if idx == 0
scenario_data[type[idx]] = data
@@ -50,10 +50,10 @@
end
ope = OperationBuilder.new(@options)
ope.build_first(
scenario_data[:main],
- scenario_data[:node_info],
+ scenario_data[:target_info],
scenario_data[:tasks],
scenario_data[:hooks])
end
end
end