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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 482345b8a31b44b73b45da869e885735eca99cf0
4
- data.tar.gz: 17ae742e63443ec176fe293405d62872f8c498ca
3
+ metadata.gz: 4470bc36543de70d7119abb6d2e69da4b87de585
4
+ data.tar.gz: 97a1f2c84899380bef2cc2082dcd0ac08ae0a6a7
5
5
  SHA512:
6
- metadata.gz: 25d1eb9fab45d6bf3971c729a75d315b883824e1b719574496858ce9eb6da5e0b78fd4b8477b109889f19c9bc2dd5ce38bc3d74c3ae65b2fb74471d15784aa33
7
- data.tar.gz: 65516b2b48a76c79eda888474ff1c39a53412ea879465df36bfadecb4bf713ffea66c6042ace427f8b96ae387775ea6fa9f90abb8eb831539431a6813f28c8b9
6
+ metadata.gz: e98c02ea48791873244267e0ad3e3ca74c9a68e75af2376f63d9ba12483d5843ee40ec02c2fbb5b9b85c6997d09c46fe9a37b0535a412f91bccf63f30b3d9419
7
+ data.tar.gz: c490a0f20d5acad828e42d405ebc0c9022134f43666049162312c0bc8a570f38220aa488c43de556800326290f3473f3b676512c9dac0cb3b9ac0e4f979780a0
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module S3Archive
3
- VERSION = "0.3.2"
3
+ VERSION = "0.3.3"
4
4
  end
5
5
  end
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-s3_archive
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takuto Komazaki