lib/mina/commands.rb in mina-1.0.0.beta3 vs lib/mina/commands.rb in mina-1.0.0.beta4
- old
+ new
@@ -17,23 +17,23 @@
queue[stage] << (quiet ? code : echo_cmd(code))
end
def comment(code, indent: nil)
if indent
- queue[stage] << indent(indent, %(echo "-----> #{code}"))
+ queue[stage] << indent(indent, %{echo "-----> #{code}"})
else
- queue[stage] << %(echo "-----> #{code}")
+ queue[stage] << %{echo "-----> #{code}"}
end
end
def delete(stage)
queue.delete(stage) || []
end
def process(path = nil)
if path
- queue[stage].unshift(%(echo "$ cd #{path}")) if fetch(:verbose)
- %((cd #{path} && #{queue[stage].join(' && ')}))
+ queue[stage].unshift(%{echo "$ cd #{path}"}) if fetch(:verbose)
+ %{(cd #{path} && #{queue[stage].join(' && ')})}
else
queue[stage].join("\n")
end
end