docker-spec 0.9.0 → 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/docker/spec/docker.rb +7 -0
- data/lib/docker/spec/version.rb +1 -1
- 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: bd0de013abc784de7d90f58a914dc3c7c1664d61
|
4
|
+
data.tar.gz: 8050f9d33b26ff81a533bed3b57c55cbef192809
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a928acf4dc6dd841aa19bf7e95859d2e0b017c0b728b921f5218f8b877d8e65e55c79c21d6a8e22d19af149a33b0523473dd5b323d650b4cc8e38f5c3672bbd2
|
7
|
+
data.tar.gz: a81bdd7dd3a59761ebb441c95c2ca3c6e8257fefb50583860a1fc68a0eaef950461c5205d5361da1de40fa55950da50a8feae62cdbc5432c09bb2dfccf7e71f8
|
data/lib/docker/spec/docker.rb
CHANGED
@@ -5,6 +5,13 @@ module Docker
|
|
5
5
|
before(:all) do
|
6
6
|
@container = DockerSpec.instance.container
|
7
7
|
@image = @container.info["Image"]
|
8
|
+
@config = DockerSpec.instance.config
|
9
|
+
@lock = File.join('/tmp', @config[:account] + '-' + @config[:name] + '.lock')
|
10
|
+
@f = File.open(@lock, 'w')
|
11
|
+
if (not @f.flock(File::LOCK_EX | File::LOCK_NB))
|
12
|
+
puts "INFO: Another build is already running"
|
13
|
+
end
|
14
|
+
@f.flock(File::LOCK_EX)
|
8
15
|
end
|
9
16
|
|
10
17
|
it 'should be available' do
|
data/lib/docker/spec/version.rb
CHANGED