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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YTIxNWMxNjY2YTA5MDQxZjZiNTk0ZGMyMzc4ZDlkYWMzMmVlY2YxNg==
4
+ ZDA4YWUxNDAwNTlmOTQ3MTRkMzllOGVmYjZmMTIyMjIyYjlhZTQzMg==
5
5
  data.tar.gz: !binary |-
6
- NzA2YWVhODJlNzBkZGYwNDIxZmYwM2FhNjg2ZDgwMzMyZWE4MGI3Yw==
6
+ OTNjN2Q2OTA2MWUwYTg3NGUzZWI3NDM2NDM2MWUwMzBiNTU2MTEzYw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MjA0ZTUyY2E4ZDZlMjZhZDM2M2VlOGExYTBiY2VhMTE5NzEzYTQwNmEzOGRj
10
- OGNhYzJkOTcwNjIxNjU2NDNiNmZjNWJkMjRiYzEyMTA0YTZiNzBkYTQyZjMz
11
- M2RjNzliOGUyMjFjOGMxYTViMDc0ZDMxYzRmNGMxNjU0OTBkNWE=
9
+ Y2MzN2JhNzQwN2RlMjI4YjNmYTVlOWYyZmYwM2ZjYjc4Y2RiNWYxNGRmOWIy
10
+ ZWUxZmM3Mzc2MzJhMDZjZWYwOTNiYzcxOTc5OWI4NTQ0ZDQ0MjA3ZDE5OGUx
11
+ ODJjZTgyNzcwNWIyOWJlNTFjOGI5NzNkMjE4Y2Q5MDM0MTk1ZWQ=
12
12
  data.tar.gz: !binary |-
13
- OTU0ZDg5YzdhMTI4OGRlOWRiZDdhYzlhMWE4Y2U1NDY1MmYyMDJmMDI0ZWRl
14
- ZjA0MjU4NzFhN2M1OGI3NzYyYTM2Nzg5Yzc1NmU5ODljZTBjYTFlYWMzNTAy
15
- YWVmZGNmMjFmYzI3YmQ1ZGEyMDQxOTkyMmYwZGY2MjJiNGQ5ZWI=
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
- logger.info "Installing package #{package.name}"
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
- package.dependencies.each do |task_name|
182
- before package.full_name, task_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
-
@@ -3,7 +3,7 @@ module Capistrano
3
3
  module Plugins
4
4
  module Gem
5
5
 
6
- def gem(package_name, options = {})
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.7
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: 2013-10-12 00:00:00.000000000 Z
11
+ date: 2014-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano