tasks/mina/default.rb in mina-1.2.1 vs tasks/mina/default.rb in mina-1.2.2
- old
+ new
@@ -15,10 +15,14 @@
task :default do
end
task :run_commands do
if commands.run_default?
+ # all this so remote_environent is inserted in before all other commands
+ old_commands = commands.queue[:default]
+ commands.empty
invoke :remote_environment
+ commands.queue[:default] += old_commands
commands.run(:remote)
end
end
task :reset! do