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.
- data/capistrano-utils.gemspec +1 -1
- data/lib/capistrano/ext/helpers.rb +6 -5
- metadata +2 -2
data/capistrano-utils.gemspec
CHANGED
@@ -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.
|
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
|
165
|
-
|
166
|
-
|
167
|
-
|
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.
|
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: -
|
81
|
+
hash: -3298047913881621470
|
82
82
|
requirements: []
|
83
83
|
rubyforge_project:
|
84
84
|
rubygems_version: 1.8.23
|