capistrano-s3_archive 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/capistrano/s3_archive/version.rb +1 -1
- data/lib/capistrano/s3_archive.rb +2 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4470bc36543de70d7119abb6d2e69da4b87de585
|
4
|
+
data.tar.gz: 97a1f2c84899380bef2cc2082dcd0ac08ae0a6a7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e98c02ea48791873244267e0ad3e3ca74c9a68e75af2376f63d9ba12483d5843ee40ec02c2fbb5b9b85c6997d09c46fe9a37b0535a412f91bccf63f30b3d9419
|
7
|
+
data.tar.gz: c490a0f20d5acad828e42d405ebc0c9022134f43666049162312c0bc8a570f38220aa488c43de556800326290f3473f3b676512c9dac0cb3b9ac0e4f979780a0
|
@@ -148,6 +148,7 @@ module Capistrano
|
|
148
148
|
end
|
149
149
|
|
150
150
|
def stage_lock(&block)
|
151
|
+
mkdir_p(File.dirname(fetch(:local_cache)))
|
151
152
|
lockfile = "#{fetch(:local_cache)}.#{fetch(:stage)}.lock"
|
152
153
|
File.open(lockfile, "w") do |f|
|
153
154
|
if f.flock(File::LOCK_EX | File::LOCK_NB)
|
@@ -161,6 +162,7 @@ module Capistrano
|
|
161
162
|
end
|
162
163
|
|
163
164
|
def release_lock(exclusive = false, &block)
|
165
|
+
mkdir_p(File.dirname(fetch(:local_cache)))
|
164
166
|
lockfile = "#{fetch(:local_cache)}.#{fetch(:stage)}.release.lock"
|
165
167
|
File.open(lockfile, File::RDONLY|File::CREAT) do |f|
|
166
168
|
mode = if exclusive
|