lib/rundock/plugin/operation/deploy.rb in rundock-1.1.0 vs lib/rundock/plugin/operation/deploy.rb in rundock-1.1.1
- old
+ new
@@ -68,22 +68,26 @@
else
{}
end
if is_erb
- erb_content = conv_erb(opt[:src], trim_mode, val_binding)
+ erb_content = conv_erb(assign_args(opt[:src], attributes[:task_args]),
+ trim_mode,
+ val_binding)
tempfile = Tempfile.new('', Dir.tmpdir)
begin
tempfile.write(erb_content)
tempfile.rewind
- backend.send_file(tempfile.path, opt[:dst])
+ backend.send_file(tempfile.path,
+ assign_args(opt[:dst], attributes[:task_args]))
ensure
tempfile.close
end
else
- backend.send_file(opt[:src], opt[:dst])
+ backend.send_file(assign_args(opt[:src], attributes[:task_args]),
+ assign_args(opt[:dst], attributes[:task_args]))
end
end
end
private
@@ -102,9 +106,11 @@
def extract_map(backend, binding)
map = {}
binding.each do |k, v|
map[k] = backend.specinfra_run_command(v[:value]).stdout.strip if v.key?(:value)
+
+ # write types other than the command here
end
map
end
end