Permalink
Browse files

Really fix #476

  • Loading branch information...
1 parent 8226b49 commit aaf50c597223f089103cb9b0d872bd4435edefed @d4be4st d4be4st committed Dec 15, 2016
Showing with 14 additions and 5 deletions.
  1. +4 −0 lib/mina/commands.rb
  2. +1 −1 lib/mina/version.rb
  3. +4 −2 tasks/mina/default.rb
  4. +5 −2 test_env/config/deploy.rb
@@ -39,6 +39,10 @@ def process(path = nil)
end
end
+ def run_default?
+ !queue.empty? && stage == :default
+ end
+
def run(backend)
return if queue.empty?
report_time do
View
@@ -1,3 +1,3 @@
module Mina
- VERSION = '1.0.5'.freeze
+ VERSION = '1.0.6'.freeze
end
@@ -9,8 +9,10 @@
end
task :run_commands do
- invoke :environment
- commands.run(:remote)
+ if commands.run_default?
+ invoke :environment
+ commands.run(:remote)
+ end
end
task :reset! do
@@ -33,7 +33,6 @@
task :environment do
invoke :'rbenv:load'
- invoke :'rvm:use', '123'
end
#
# desc "Deploys."
@@ -57,7 +56,7 @@
desc 'Task description'
task :test do
- run :local do
+ run :remote do
comment %{PWD}
in_path('/Users') do
command %{ls -al}
@@ -66,4 +65,8 @@
command %{pwd}
end
end
+
+ run :local do
+ command %{ls -al}
+ end
end

0 comments on commit aaf50c5

Please sign in to comment.