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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3ca15895fd936cd2a664100fd10ac43d858c6fca
4
- data.tar.gz: e70a7268eaeb90054b35d4171d7b29ac07abdb80
3
+ metadata.gz: bd0de013abc784de7d90f58a914dc3c7c1664d61
4
+ data.tar.gz: 8050f9d33b26ff81a533bed3b57c55cbef192809
5
5
  SHA512:
6
- metadata.gz: 0114ca4f5e090d18dc1c3dd2ad9610d5e08d02fb4bba34059005f0ed3dd70cf03ca2ff41639729165447018c16fd0cef0ad0b573bb01132bcd7726800fbb038a
7
- data.tar.gz: 7597bc6a959191ec31f192fcb9af765cf6a9363a8821030f0c262e121b633def1690d841a0c6b5ec7e54816dc9f4af9e101ed8cbdc70dae184b9f1e295fdce30
6
+ metadata.gz: a928acf4dc6dd841aa19bf7e95859d2e0b017c0b728b921f5218f8b877d8e65e55c79c21d6a8e22d19af149a33b0523473dd5b323d650b4cc8e38f5c3672bbd2
7
+ data.tar.gz: a81bdd7dd3a59761ebb441c95c2ca3c6e8257fefb50583860a1fc68a0eaef950461c5205d5361da1de40fa55950da50a8feae62cdbc5432c09bb2dfccf7e71f8
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Docker
2
2
  module Spec
3
- VERSION = "0.9.0"
3
+ VERSION = "0.10.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: docker-spec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Breinlinger