baptize 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/baptize/dsl.rb +14 -5
- data/lib/baptize/plugins/gem.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZDA4YWUxNDAwNTlmOTQ3MTRkMzllOGVmYjZmMTIyMjIyYjlhZTQzMg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OTNjN2Q2OTA2MWUwYTg3NGUzZWI3NDM2NDM2MWUwMzBiNTU2MTEzYw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Y2MzN2JhNzQwN2RlMjI4YjNmYTVlOWYyZmYwM2ZjYjc4Y2RiNWYxNGRmOWIy
|
10
|
+
ZWUxZmM3Mzc2MzJhMDZjZWYwOTNiYzcxOTc5OWI4NTQ0ZDQ0MjA3ZDE5OGUx
|
11
|
+
ODJjZTgyNzcwNWIyOWJlNTFjOGI5NzNkMjE4Y2Q5MDM0MTk1ZWQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZmMwZWE5OTQ2ZjVjNTliNTFjMjBmYjIxMTA0MmVhNzRlOTA0YzkxNzQ0MDZk
|
14
|
+
ZDIyNzZjNDdiNGZlOGZiMzY2YTQ1YWM4YTFjOTBhNGE0NmI3MzdmNzA5MTQ2
|
15
|
+
NDE5N2FhMmYwM2U4YmVkOGZiOTNjYzY4MmE0YTUzZTIwYTkwNzc=
|
data/lib/baptize/dsl.rb
CHANGED
@@ -158,10 +158,14 @@ module Capistrano
|
|
158
158
|
rescue VerificationFailure => err
|
159
159
|
false
|
160
160
|
end
|
161
|
-
if already_installed
|
161
|
+
if already_installed && !ENV['FORCE_INSTALL']
|
162
162
|
logger.info "Skipping previously installed package #{package.name}"
|
163
163
|
else
|
164
|
-
|
164
|
+
if already_installed && ENV['FORCE_INSTALL']
|
165
|
+
logger.important "Force installing previously installed package #{package.name}"
|
166
|
+
else
|
167
|
+
logger.info "Installing package #{package.name}"
|
168
|
+
end
|
165
169
|
instance_eval(&package.install_block)
|
166
170
|
instance_eval(&package.verify_block)
|
167
171
|
end
|
@@ -178,12 +182,17 @@ module Capistrano
|
|
178
182
|
end
|
179
183
|
end
|
180
184
|
end
|
181
|
-
|
182
|
-
before package.full_name
|
185
|
+
if ENV['SKIP_DEPENDENCIES']
|
186
|
+
before package.full_name do
|
187
|
+
logger.important "Skipping dependencies for package #{package.name}"
|
188
|
+
end
|
189
|
+
else
|
190
|
+
package.dependencies.each do |task_name|
|
191
|
+
before package.full_name, task_name
|
192
|
+
end
|
183
193
|
end
|
184
194
|
end
|
185
195
|
end
|
186
196
|
|
187
197
|
end
|
188
198
|
end
|
189
|
-
|
data/lib/baptize/plugins/gem.rb
CHANGED
@@ -3,7 +3,7 @@ module Capistrano
|
|
3
3
|
module Plugins
|
4
4
|
module Gem
|
5
5
|
|
6
|
-
def
|
6
|
+
def install_gem(package_name, options = {})
|
7
7
|
cmd = "gem install #{package_name}"
|
8
8
|
cmd << " --version '#{options[:version]}'" if options[:version]
|
9
9
|
cmd << " --source #{options[:source]}" if options[:source]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: baptize
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Troels Knak-Nielsen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: capistrano
|