puppet_docker_tools 0.2.1 → 0.2.2

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: 4f4ea9ede1e2ecf2cf963a0b9afce2d88799bd2f
4
- data.tar.gz: ffdf62caea38d81e2eb9dae45859cc787f922e8b
3
+ metadata.gz: dc945bffdddf3067ab1d000be9d7839f68c0721e
4
+ data.tar.gz: 1863101ff1fe030992e7f229fa97f68d72c098d3
5
5
  SHA512:
6
- metadata.gz: 22cd4de3171b2aaeac272278fecf0b4004560c303a0562a8e6951e7c68b938d0340a0982fbe5396afafd3a8b2d0e46ba7b0f6861ae9e8e8b15b6290c1cd9d3c7
7
- data.tar.gz: f2e93a7631cf65fe82194354e7e01c79830d6aa8cbbea0a1650fd9c96de258e36fc0c738d5f873adc7b4d65bac67ae26d035f544e596217b7d765aa1e049ba60
6
+ metadata.gz: d1f547cb6bcb76693d10a45cfc38d606871c814382443f1f108f184a950ea62075e4c454b141b5378b9ae121fd2d54e94d632968cf48ef9a39e8ec79a44938b5
7
+ data.tar.gz: 35b310086f8100a54a05e75a1117339a804c5565be4b4b5a372650981e80e381d94d45299743b961e844c675b8cce2cfd20eceb83a6f6040242efbf7b31d8f5c
@@ -69,7 +69,7 @@ class PuppetDockerTools
69
69
  end
70
70
 
71
71
  if dockerfile != "Dockerfile"
72
- build_options << ['--file', dockerfile]
72
+ build_options << ['--file', File.join(directory, dockerfile)]
73
73
  end
74
74
 
75
75
  tags = []
@@ -83,7 +83,7 @@ describe PuppetDockerTools::Runner do
83
83
  allow(File).to receive(:exist?).with('/tmp/test-image/Dockerfile.test').and_return(true)
84
84
  expect(File).to receive(:read).with('/tmp/test-image/Dockerfile.test').and_return(read_dockerfile)
85
85
  expect(PuppetDockerTools::Utilities).to receive(:get_value_from_env).with('version', namespace: 'org.label-schema', directory: '/tmp/test-image', dockerfile: 'Dockerfile.test').and_return(nil)
86
- expect(Open3).to receive(:popen2e).with('docker', 'build', '--build-arg', 'vcs_ref=b0c5ead01b6cabdb3f01871bce699be165c3288f', '--build-arg', 'build_date=2018-06-08T17:18:13Z', '--no-cache', '--file', 'Dockerfile.test', '--tag', 'test/test-image:latest', runner.directory)
86
+ expect(Open3).to receive(:popen2e).with('docker', 'build', '--build-arg', 'vcs_ref=b0c5ead01b6cabdb3f01871bce699be165c3288f', '--build-arg', 'build_date=2018-06-08T17:18:13Z', '--no-cache', '--file', '/tmp/test-image/Dockerfile.test', '--tag', 'test/test-image:latest', runner.directory)
87
87
  local_runner = create_runner(directory: '/tmp/test-image', repository: 'test', namespace: 'org.label-schema', dockerfile: 'Dockerfile.test')
88
88
  local_runner.build(no_cache: true)
89
89
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: puppet_docker_tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Puppet, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-01 00:00:00.000000000 Z
11
+ date: 2018-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec