capistrano-robo 0.0.4 → 0.0.5

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: 977e7f7de0866d282e208f0bd8bf3c6bb4a5ec74
4
- data.tar.gz: d8e4a4b7a7ce50dc7be557d47925cc1d33cf72ee
3
+ metadata.gz: 89418e74c0d8e62f546d63b480524c7cb0f81fa1
4
+ data.tar.gz: 6f6b2fcd7925e80f835de73f864825f2b5bdbe52
5
5
  SHA512:
6
- metadata.gz: 17e2bf385a1f26c8e862e90631ab4f84787c58b72b2a9c85df3c21347249fae9ad8140d153a1ad66fbd91a80bd96c8782178dd66d6cb2e0fe96e5dac0576f9ca
7
- data.tar.gz: 2831671b2b3ab67a64444b7d30a2731c5e82874b008f6a335b89864088504e857a2910291d9e10893a98529ceb4c79c187e01e932331b6da4a1940f8841572a1
6
+ metadata.gz: c2a9e638773c5a1ecd3290ba31e9bd8b08d9b91a5b48830f64efd6af08de103976286131d5065d349d045bea0ea8b529bc317ce4c86642b8ebe7aa7cc7df620b
7
+ data.tar.gz: c1c05f98f8239cfd4e7cca55c1bc881d7c424667ddf81cf9da4b1281034040c44cf07313621933d03cd07350f0b8fb6816a3b4f6a6438eccd704dbf14db8c430
@@ -10,13 +10,13 @@ desc <<-DESC
10
10
  set :robo_flags, '-v'
11
11
  DESC
12
12
  task :robo, :task_name do |t, args|
13
- fail ArgumentError.new('The robo task needs an argument, none passed.') unless args[:task_name]
13
+ # ask only runs if argument is not provided
14
+ ask(:cmd, '')
15
+ command = args[:task_name] || fetch(:cmd)
16
+
14
17
  on roles fetch(:robo_roles) do
15
18
  within fetch(:robo_target_path, release_path) do
16
- options = [fetch(:robo_flags)]
17
- options << args[:task_name]
18
-
19
- execute fetch(:robo_exec), options
19
+ execute :php, fetch(:robo_exec), fetch(:robo_flags), command, *args.extras
20
20
  end
21
21
  end
22
22
  end
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Robo
3
- VERSION = "0.0.4"
3
+ VERSION = "0.0.5"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-robo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eduardo Sampaio