lib/mina/commands.rb in mina-1.2.1 vs lib/mina/commands.rb in mina-1.2.2
- old
+ new
@@ -28,9 +28,13 @@
def delete(stage)
queue.delete(stage) || []
end
+ def empty(stage = :default)
+ queue[stage] = []
+ end
+
def process(path = nil)
if path
queue[stage].unshift(%{echo "$ cd #{path}"}) if fetch(:verbose)
%{(cd #{path} && #{queue[stage].join(' && ')} && cd -)}
else