kitchen-docker_cli 0.14.1 → 0.14.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: c1aebbb2fe16364552a69eaac3fd4241ebea7339
4
- data.tar.gz: d0598beca61df19715ba59d7aa9616cf379340ac
3
+ metadata.gz: 3269fa4b33bf25f161bcd1af841c00cce6f2cbe6
4
+ data.tar.gz: af1dc072ceb79cb73c0781ec776527d23c150875
5
5
  SHA512:
6
- metadata.gz: cf2689759559525535b995598d63cbb56ecedb2f798bf7a74fb795f47aa53dc74d884bc04b6c1bd2015c24eee6d08dbe6a05b3d66f6c10d70f2eb4c4552631ca
7
- data.tar.gz: 3603decf5026b403fe1e7dfacdadfefdceffffda1027c0914f3abfdc7f9cb3c8b73e22ac7a1ffd91e8ee5581272320d610edc3271889991467579728f838edfd
6
+ metadata.gz: d875cd82bf9fe83e52b2c179f3968068b6a40d9b57338456b7b6dba0295d268907639efe7f3aa92c5d62747d00f4586f3e83ff41c58095baf4bba6e4c3d965fe
7
+ data.tar.gz: 39463c201c7f8ef0f01d3671ac196a62e3c5bbadd217ad3c243cca83b6664c3a6908d79c3d63169063ac2d603e0e4b1b552c5e9ae1fa8c85ed95711efdae47fa
data/.travis.yml CHANGED
@@ -4,7 +4,6 @@ rvm:
4
4
  - 2.2.3
5
5
  - 2.1.7
6
6
  - 2.0.0
7
- - 1.9.3
8
7
  - ruby-head
9
8
 
10
9
  matrix:
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.14.2
2
+
3
+ * Fix error on Circle-CI
4
+
1
5
  ## 0.14.1
2
6
 
3
7
  * Pull request [#23][]: Add `build_context` option to pass Docker build context ([@nrvale0][])
@@ -110,4 +114,4 @@
110
114
  [@hd-deman]: https://github.com/hd-deman
111
115
  [@nrvale0]: https://github.com/nrvale0
112
116
  [@sawanoboly]: https://github.com/sawanoboly
113
- [@yewton]: https://github.com/yewton
117
+ [@yewton]: https://github.com/yewton
data/README.md CHANGED
@@ -5,8 +5,8 @@
5
5
 
6
6
  A Test Kitchen Driver(and Transport) for Docker command line interface.
7
7
 
8
- This plugin is created with only Docker CLI functions.
9
- Therefore, we can test with an environment that has no extra software such as `sshd`.
8
+ This plugin is created with only Docker CLI functions.
9
+ We can test on the environment that has no extra software such as `sshd`.
10
10
 
11
11
  ## <a name="requirements"></a> Requirements
12
12
 
@@ -63,7 +63,11 @@ module Kitchen
63
63
 
64
64
  def destroy(state)
65
65
  instance.transport.connection(state) do |conn|
66
- conn.run_docker("rm -f #{state[:container_id]}") if state[:container_id]
66
+ begin
67
+ conn.run_docker("rm -f #{state[:container_id]}") if state[:container_id]
68
+ rescue => e
69
+ raise e unless conn.send(:options)[:lxc_driver]
70
+ end
67
71
  end
68
72
  end
69
73
 
@@ -21,6 +21,6 @@ module Kitchen
21
21
  module Driver
22
22
 
23
23
  # Version string for DockerCli Kitchen driver
24
- DOCKER_CLI_VERSION = '0.14.1'
24
+ DOCKER_CLI_VERSION = '0.14.2'
25
25
  end
26
26
  end
@@ -1,7 +1,7 @@
1
1
  require 'spec_helper'
2
2
  require 'kitchen/driver/docker_cli'
3
3
 
4
- describe Kitchen::Driver::DockerCli, "default_image" do
4
+ describe Kitchen::Driver::DockerCli, "#default_image" do
5
5
 
6
6
  before do
7
7
  @docker_cli = Kitchen::Driver::DockerCli.new
@@ -26,7 +26,7 @@ describe Kitchen::Driver::DockerCli, "default_image" do
26
26
  end
27
27
  end
28
28
 
29
- describe Kitchen::Driver::DockerCli, "default_platform" do
29
+ describe Kitchen::Driver::DockerCli, "#default_platform" do
30
30
 
31
31
  before do
32
32
  @docker_cli = Kitchen::Driver::DockerCli.new
@@ -42,7 +42,7 @@ describe Kitchen::Driver::DockerCli, "default_platform" do
42
42
  end
43
43
  end
44
44
 
45
- describe Kitchen::Driver::DockerCli, "create" do
45
+ describe Kitchen::Driver::DockerCli, "#create" do
46
46
 
47
47
  before do
48
48
  @docker_cli = Kitchen::Driver::DockerCli.new(config)
@@ -68,7 +68,7 @@ describe Kitchen::Driver::DockerCli, "create" do
68
68
  end
69
69
  end
70
70
 
71
- describe Kitchen::Driver::DockerCli, "docker_build_command" do
71
+ describe Kitchen::Driver::DockerCli, "#docker_build_command" do
72
72
 
73
73
  before do
74
74
  @docker_cli = Kitchen::Driver::DockerCli.new(config)
@@ -76,7 +76,7 @@ describe Kitchen::Driver::DockerCli, "docker_build_command" do
76
76
 
77
77
  context 'build_context' do
78
78
  let(:config) { {:build_context => true} }
79
-
79
+
80
80
  example do
81
81
  expect(@docker_cli.docker_build_command).to eq 'build .'
82
82
  end
@@ -100,7 +100,7 @@ describe Kitchen::Driver::DockerCli, "docker_build_command" do
100
100
 
101
101
  end
102
102
 
103
- describe Kitchen::Driver::DockerCli, "docker_run_command" do
103
+ describe Kitchen::Driver::DockerCli, "#docker_run_command" do
104
104
 
105
105
  before do
106
106
  @docker_cli = Kitchen::Driver::DockerCli.new(config)
@@ -147,7 +147,7 @@ describe Kitchen::Driver::DockerCli, "docker_run_command" do
147
147
  end
148
148
  end
149
149
 
150
- describe Kitchen::Driver::DockerCli, "parse_image_id" do
150
+ describe Kitchen::Driver::DockerCli, "#parse_image_id" do
151
151
 
152
152
  before do
153
153
  @docker_cli = Kitchen::Driver::DockerCli.new()
@@ -165,7 +165,7 @@ describe Kitchen::Driver::DockerCli, "parse_image_id" do
165
165
 
166
166
  end
167
167
 
168
- describe Kitchen::Driver::DockerCli, "parse_container_id" do
168
+ describe Kitchen::Driver::DockerCli, "#parse_container_id" do
169
169
 
170
170
  before do
171
171
  @docker_cli = Kitchen::Driver::DockerCli.new()
@@ -192,7 +192,7 @@ describe Kitchen::Driver::DockerCli, "parse_container_id" do
192
192
 
193
193
  end
194
194
 
195
- describe Kitchen::Driver::DockerCli, "docker_file" do
195
+ describe Kitchen::Driver::DockerCli, "#docker_file" do
196
196
 
197
197
  before do
198
198
  @docker_cli = Kitchen::Driver::DockerCli.new(config)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kitchen-docker_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.1
4
+ version: 0.14.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masashi Terui
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-28 00:00:00.000000000 Z
11
+ date: 2015-12-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-kitchen