capistrano-utils 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,7 +13,7 @@ Gem::Specification.new do |gem|
13
13
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
14
14
  gem.name = 'capistrano-utils'
15
15
  gem.require_paths = ['lib']
16
- gem.version = '0.0.7'
16
+ gem.version = '0.0.8'
17
17
 
18
18
  gem.add_dependency 'rake'
19
19
  gem.add_dependency 'capistrano', '>= 2.12.0'
@@ -159,12 +159,13 @@ Capistrano::Configuration.instance(:must_exist).load do
159
159
  end
160
160
  end
161
161
 
162
- def arguments
162
+ def arguments(required = true)
163
163
  index = ARGV.index(main_task) + 1
164
- abort 'Too many arguments' if ARGV.size - 1 > index
165
- abort 'Too few arguments' if ARGV.size - 1 < index
166
- task ARGV[index] { } # Defines a task by the argument name
167
- ARGV[index]
164
+ abort 'Too few arguments' if required && ARGV.size - 1 < index
165
+ ARGV[index..ARGV.size].each do |t|
166
+ # Defines a task by the argument name
167
+ task t do end
168
+ end
168
169
  end
169
170
 
170
171
  def exists_and_not_empty?(key)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-utils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -78,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
78
78
  version: '0'
79
79
  segments:
80
80
  - 0
81
- hash: -3751233142603140895
81
+ hash: -3298047913881621470
82
82
  requirements: []
83
83
  rubyforge_project:
84
84
  rubygems_version: 1.8.23