kitchen-docker_cli 0.11.0 → 0.11.1

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: 359f46d9d1ce5cd75286176ccd7c95e6e3d1f90c
4
- data.tar.gz: faa8356ddbe9a7c969a7f89fbdb021b85c3d7fc0
3
+ metadata.gz: 4273d3d6bf927a7ce2dca8540e733535ffd0c208
4
+ data.tar.gz: 7764769af88c2e1d2a06b31ac16d8736c475992e
5
5
  SHA512:
6
- metadata.gz: 6de9c96633fa6aa7f94ccb23e6005ff22212760b429a21a6d4150ac952c9010dd03c054e5bf92e7c2fc017c453ae710928c4f297d88e6a75229ea0bac4495499
7
- data.tar.gz: 123daec4598ece8057386290c63ad1994be00558111af62bfc342a495dd5ea13e0dd75f86395760b26ba0362a46a679b464f43e92769b0ffa2439465697c491f
6
+ metadata.gz: 629a1b67b17130b7ffe6136879ff894e43ee8355ead7d95cc49ffa6da730b960388bf241f994d3123118829f00f23ca3259cd241b90f5320ec5610efc443d4c2
7
+ data.tar.gz: ab942b9b5fd21556f87d846ddb47a61f0281710ee99c9364bacf216578e4646e511b73b56bad12303b31b9316fe0e33435a29ed6fbb20ad850910b81d692c9a9
data/.kitchen.yml CHANGED
@@ -5,14 +5,19 @@ driver:
5
5
  transport:
6
6
  name: docker_cli
7
7
 
8
- driver_config:
9
- hostname: example.local
10
-
11
8
  platforms:
12
9
  # - name: ubuntu-12.04
13
- # - name: ubuntu-14.04
10
+ - name: ubuntu-14.04
14
11
  - name: centos-6.6
15
12
  # - name: fedora-20
16
13
 
17
14
  suites:
18
- - name: default
15
+ - name: chef
16
+ provisioner:
17
+ name: chef_zero
18
+
19
+ - name: ansible
20
+ provisioner:
21
+ name: ansible_playbook
22
+ playbook: test/integration/ansible/default.yml
23
+ hosts: 127.0.0.1
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## 0.11.1
2
+
3
+ * `kitchen-ansible` support
4
+
1
5
  ## 0.11.0
2
6
 
3
7
  * Add `expose` option
data/Gemfile CHANGED
@@ -1,3 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  gemspec
4
+
5
+ group :development do
6
+ gem 'kitchen-ansible'
7
+ end
@@ -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.11.0'
24
+ DOCKER_CLI_VERSION = '0.11.1'
25
25
  end
26
26
  end
@@ -50,8 +50,10 @@ module Kitchen
50
50
  end
51
51
 
52
52
  def execute(command)
53
- exec_cmd = docker_exec_command(@options[:container_id], command, :tty => true)
54
- run_docker(exec_cmd) if command
53
+ if command
54
+ exec_cmd = docker_exec_command(@options[:container_id], command, :tty => true)
55
+ run_docker(exec_cmd)
56
+ end
55
57
  end
56
58
 
57
59
  def run_docker(command, options={})
@@ -73,6 +75,7 @@ module Kitchen
73
75
  exec_cmd = "exec"
74
76
  exec_cmd << " -t" if opt[:tty]
75
77
  exec_cmd << " -i" if opt[:interactive]
78
+ cmd = Util.wrap_command(cmd.gsub('\'', '"')) unless cmd.match(/\Ash\s\-c/)
76
79
  exec_cmd << " #{container_id} #{cmd}"
77
80
  end
78
81
 
@@ -0,0 +1,6 @@
1
+ ---
2
+ - hosts: 127.0.0.1
3
+ user: root
4
+ tasks:
5
+ - name: "test"
6
+ shell: echo "test"
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.11.0
4
+ version: 0.11.1
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-06-18 00:00:00.000000000 Z
11
+ date: 2015-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: test-kitchen
@@ -128,6 +128,7 @@ files:
128
128
  - spec/kitchen/driver/dockerfile.erb
129
129
  - spec/kitchen/driver/dockerfile_nil.erb
130
130
  - spec/spec_helper.rb
131
+ - test/integration/ansible/default.yml
131
132
  homepage: https://github.com/marcy-terui/kitchen-docker_cli
132
133
  licenses:
133
134
  - Apache 2.0
@@ -157,3 +158,4 @@ test_files:
157
158
  - spec/kitchen/driver/dockerfile.erb
158
159
  - spec/kitchen/driver/dockerfile_nil.erb
159
160
  - spec/spec_helper.rb
161
+ - test/integration/ansible/default.yml