cutlass 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -1
- data/Gemfile.lock +1 -1
- data/lib/cutlass/local_buildpack.rb +17 -6
- data/lib/cutlass/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a26c39e3aed992a3bce384c77603c159473bdb1a0f39bd86e996806ce26c6c3e
|
4
|
+
data.tar.gz: d829ea4b01eef4b6ac709510cafcac39768b2470852a4db12f8b04fa26231a34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39ceffa9e16f1b0c76e3894bdca69d6bd6a83a19ec90d4f34a593e7361935672800befb0761339571a2cb3dcf4434d8e21f5e96550160038adf9e4d4dc2789a1
|
7
|
+
data.tar.gz: f59429e16a53e8085dbf57fe86ef132e365df58bb014f13d2588814c0617235c9f3f6de389a302243f2cdfa6f6d28ea0f500e0f72e094837666825451fdfff37
|
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,10 @@
|
|
1
1
|
## [Unreleased]
|
2
2
|
|
3
|
+
- Lock LocalBuildpack when generating images to prevent process race conditions https://github.com/heroku/cutlass/pull/9
|
4
|
+
|
3
5
|
## 0.1.6
|
4
6
|
|
5
|
-
- Remove premature error checking from Cutlass.default_buildpack_paths
|
7
|
+
- Remove premature error checking from Cutlass.default_buildpack_paths https://github.com/heroku/cutlass/pull/8
|
6
8
|
|
7
9
|
## 0.1.5
|
8
10
|
|
data/Gemfile.lock
CHANGED
@@ -29,6 +29,16 @@ module Cutlass
|
|
29
29
|
@built = false
|
30
30
|
@directory = Pathname(directory)
|
31
31
|
@image_name = "cutlass_local_buildpack_#{SecureRandom.hex(10)}"
|
32
|
+
|
33
|
+
@mutex_file = Tempfile.new
|
34
|
+
end
|
35
|
+
|
36
|
+
def file_lock
|
37
|
+
file = File.open(@mutex_file.path, File::CREAT)
|
38
|
+
file.flock(File::LOCK_EX)
|
39
|
+
yield
|
40
|
+
ensure
|
41
|
+
file.close
|
32
42
|
end
|
33
43
|
|
34
44
|
def exist?
|
@@ -48,13 +58,14 @@ module Cutlass
|
|
48
58
|
end
|
49
59
|
|
50
60
|
def call
|
51
|
-
|
52
|
-
|
61
|
+
file_lock do
|
62
|
+
return if built?
|
63
|
+
raise "must be directory: #{@directory}" unless @directory.directory?
|
64
|
+
@built = true
|
53
65
|
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
call_pack_buildpack_package
|
66
|
+
call_build_sh
|
67
|
+
call_pack_buildpack_package
|
68
|
+
end
|
58
69
|
|
59
70
|
self
|
60
71
|
end
|
data/lib/cutlass/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cutlass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- schneems
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-04-
|
11
|
+
date: 2021-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: docker-api
|