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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e892a4906dcb28ec4b7d05aabebc11c9ea7b4ae7
|
4
|
+
data.tar.gz: 7eb5360c81713de4804c4f02bb4bde2c32070dda
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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|
|