capistrano_multiconfig_parallel 2.0.0.beta3 → 2.0.0.beta4

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: bc6c00a21fbf7faf7a052902b3c12ded21479384
4
- data.tar.gz: cfe3da7e2c52eea6c80e8854864893f9f619f7e8
3
+ metadata.gz: e892a4906dcb28ec4b7d05aabebc11c9ea7b4ae7
4
+ data.tar.gz: 7eb5360c81713de4804c4f02bb4bde2c32070dda
5
5
  SHA512:
6
- metadata.gz: 9dea45eb7c462650b47d8dc5f637ba5dd613e54b8b532adda39862ee6640bbe8b50557938c048c67b09cde63b2efe52e320f41d93b51ef2e254d7eb5373f8817
7
- data.tar.gz: 0a6ab329fd5f60c6828e6608d95afbc3436a59c7ecc8251b7135b501496637d8e6a547647fbc83ee0a0805a5f63d7a886a453e4e4a4ed597159c5e1bf910937a
6
+ metadata.gz: 4c966a134c96f9b91bacded7eb60dae769c781c932bb96a4b895935713a4971fe1cbecbbfdd28c3d8580dd12320c071cc3b4fbbcb1709bc7d2a9d406057d9c4e
7
+ data.tar.gz: a9e5a053363e34ed6111f1823b487114a466ee42e99c6f5ccb0f58bea066fcbe99ceb21798b6b93c52786af63d6d0588e9938248bedad904baec96ba2b00df3d
@@ -219,11 +219,11 @@ module CapistranoMulticonfigParallel
219
219
  def check_capistrano_sentinel_availability
220
220
  # '#{find_loaded_gem_property(capistrano_sentinel_name)}'
221
221
  # path: '/home/raul/workspace/github/capistrano_sentinel'
222
- FileUtils.rm_rf(job_gemfile_multi) if File.exists?(job_gemfile_multi)
223
- FileUtils.touch(job_gemfile_multi)
224
222
  if capistrano_sentinel_available? && capistrano_sentinel_needs_updating?
225
223
  @job_final_gemfile = job_gemfile
226
224
  else
225
+ FileUtils.rm_rf(job_gemfile_multi) if File.exists?(job_gemfile_multi)
226
+ FileUtils.touch(job_gemfile_multi)
227
227
  File.open(job_gemfile_multi, 'w') do |f|
228
228
  cmd=<<-CMD
229
229
  source "https://rubygems.org" do
@@ -233,8 +233,8 @@ module CapistranoMulticonfigParallel
233
233
  CMD
234
234
  f.write(cmd)
235
235
  end
236
+ FileUtils.copy(File.join(job_path, 'Gemfile.lock'), "#{job_gemfile_multi}.lock")
236
237
  end
237
- FileUtils.copy(File.join(job_path, 'Gemfile.lock'), "#{job_gemfile_multi}.lock")
238
238
  end
239
239
 
240
240
  def prepare_capfile
@@ -249,8 +249,8 @@ module CapistranoMulticonfigParallel
249
249
 
250
250
 
251
251
  def rollback_changes_to_application
252
- FileUtils.rm_rf(job_gemfile_multi)
253
- FileUtils.rm_rf("#{job_gemfile_multi}.lock")
252
+ FileUtils.rm_rf(job_gemfile_multi) if File.exists?(job_gemfile_multi)
253
+ FileUtils.rm_rf("#{job_gemfile_multi}.lock") if File.exists?("#{job_gemfile_multi}.lock")
254
254
  unless capistrano_sentinel_available?
255
255
  File.open(job_capfile, 'r') do |f|
256
256
  File.open("#{job_capfile}.tmp", 'w') do |f2|
@@ -10,7 +10,7 @@ module CapistranoMulticonfigParallel
10
10
  MAJOR = 2
11
11
  MINOR = 0
12
12
  TINY = 0
13
- PRE = 'beta3'
13
+ PRE = 'beta4'
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
16
16
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano_multiconfig_parallel
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0.beta3
4
+ version: 2.0.0.beta4
5
5
  platform: ruby
6
6
  authors:
7
7
  - bogdanRada