mina 1.0.5 → 1.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 54597c80b19401e923ce95deab19efb047cf3e74
4
- data.tar.gz: e14aa7479a07543f973220d0f9e682d2f60e17cc
3
+ metadata.gz: 73103fe66f71c00d761643c4a0af9bee29b4652e
4
+ data.tar.gz: f268b3b197cd04e703a32b6ddeb5546a10794687
5
5
  SHA512:
6
- metadata.gz: 33160434034bc5f1ea5a32ab75e4fe60c690eef1633a296e483cad2c611cfdb357cc33077fa303588426781e266cfa75308b099221959045c26e3445ff52bb2a
7
- data.tar.gz: 8dfc388b860dcedf6d10e48a6b61e999d7da2f801f3d1bdb2c10d34c85c4d077a9cf4699b8aed86d68ad6436c8263bfa7d36079a9f3dc6455db1a6c3071b4a60
6
+ metadata.gz: 1101684f8f0e8e94ca40a22e24acfb5a8e381bd41f047c5086c2e6fa4e163c082052fe406eb4dfa18fc01f1cea66928d06c9aee6981929730c881adde825660e
7
+ data.tar.gz: 4f93643a681fb6682f1fbe4cda05ed2cd85462489e324c6c8370450ccd22c96b3bc3c37f470f71dd9f6869f54ca1e66c261cb8f7c2431d2dc333c66794e1a583
@@ -39,6 +39,10 @@ module Mina
39
39
  end
40
40
  end
41
41
 
42
+ def run_default?
43
+ !queue.empty? && stage == :default
44
+ end
45
+
42
46
  def run(backend)
43
47
  return if queue.empty?
44
48
  report_time do
@@ -1,3 +1,3 @@
1
1
  module Mina
2
- VERSION = '1.0.5'.freeze
2
+ VERSION = '1.0.6'.freeze
3
3
  end
@@ -9,8 +9,10 @@ task :default do
9
9
  end
10
10
 
11
11
  task :run_commands do
12
- invoke :environment
13
- commands.run(:remote)
12
+ if commands.run_default?
13
+ invoke :environment
14
+ commands.run(:remote)
15
+ end
14
16
  end
15
17
 
16
18
  task :reset! do
@@ -33,7 +33,6 @@ set :keep_releases, 2
33
33
 
34
34
  task :environment do
35
35
  invoke :'rbenv:load'
36
- invoke :'rvm:use', '123'
37
36
  end
38
37
  #
39
38
  # desc "Deploys."
@@ -57,7 +56,7 @@ end
57
56
 
58
57
  desc 'Task description'
59
58
  task :test do
60
- run :local do
59
+ run :remote do
61
60
  comment %{PWD}
62
61
  in_path('/Users') do
63
62
  command %{ls -al}
@@ -66,4 +65,8 @@ task :test do
66
65
  command %{pwd}
67
66
  end
68
67
  end
68
+
69
+ run :local do
70
+ command %{ls -al}
71
+ end
69
72
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mina
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.5
4
+ version: 1.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stjepan Hadjić