docker-client 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +17 -0
- data/.rspec +2 -0
- data/.rvmrc +1 -0
- data/Gemfile +4 -0
- data/Guardfile +9 -0
- data/LICENSE.txt +22 -0
- data/MIT-LICENSE +21 -0
- data/README.md +87 -0
- data/Rakefile +15 -0
- data/docker.gemspec +40 -0
- data/lib/docker.rb +10 -0
- data/lib/docker/api.rb +32 -0
- data/lib/docker/connection.rb +83 -0
- data/lib/docker/error.rb +9 -0
- data/lib/docker/error/bad_parameter_error.rb +7 -0
- data/lib/docker/error/container_not_found.rb +7 -0
- data/lib/docker/error/internal_server_error.rb +7 -0
- data/lib/docker/error/not_found_error.rb +7 -0
- data/lib/docker/resource.rb +8 -0
- data/lib/docker/resource/base.rb +23 -0
- data/lib/docker/resource/container.rb +131 -0
- data/lib/docker/resource/image.rb +10 -0
- data/lib/docker/version.rb +3 -0
- data/spec/cassettes/Docker_Connection/returns_a_valid_response_for_a_basic_request.yml +40 -0
- data/spec/cassettes/Docker_Connection/returns_a_valid_response_for_get_request.yml +105 -0
- data/spec/cassettes/Docker_Connection/returns_a_valid_response_for_post_request.yml +30 -0
- data/spec/cassettes/Docker_Connection/returns_status_404_for_non_existent_path.yml +31 -0
- data/spec/cassettes/Docker_Connection/sets_given_query_parameters.yml +31 -0
- data/spec/cassettes/Docker_Connection/sets_given_request_headers.yml +33 -0
- data/spec/cassettes/Docker_Resource_Container/changes/inspects_the_container_s_filesystem_changes.yml +33 -0
- data/spec/cassettes/Docker_Resource_Container/create/raises_an_exception_when_called_with_invalid_options.yml +34 -0
- data/spec/cassettes/Docker_Resource_Container/create/with_many_settings.yml +36 -0
- data/spec/cassettes/Docker_Resource_Container/create/with_minimal_settings.yml +34 -0
- data/spec/cassettes/Docker_Resource_Container/kill/raises_an_exception_for_an_unknow_container.yml +31 -0
- data/spec/cassettes/Docker_Resource_Container/kill/the_container.yml +30 -0
- data/spec/cassettes/Docker_Resource_Container/lists/all_running_containers.yml +46 -0
- data/spec/cassettes/Docker_Resource_Container/lists/limit_last_created_containers.yml +34 -0
- data/spec/cassettes/Docker_Resource_Container/lists/non-running_processes_too.yml +114 -0
- data/spec/cassettes/Docker_Resource_Container/lists/processes_before_a_certain_created_container.yml +110 -0
- data/spec/cassettes/Docker_Resource_Container/lists/processes_since_a_certain_created_container.yml +34 -0
- data/spec/cassettes/Docker_Resource_Container/logs/returns_the_stderr_of_a_container.yml +25 -0
- data/spec/cassettes/Docker_Resource_Container/logs/returns_the_stdout_of_a_container.yml +25 -0
- data/spec/cassettes/Docker_Resource_Container/remove/deletes_the_container.yml +30 -0
- data/spec/cassettes/Docker_Resource_Container/remove/raises_an_exception_with_an_invalid_container.yml +31 -0
- data/spec/cassettes/Docker_Resource_Container/restarts/raises_an_exception_for_an_unknown_container.yml +31 -0
- data/spec/cassettes/Docker_Resource_Container/restarts/the_container.yml +30 -0
- data/spec/cassettes/Docker_Resource_Container/shows/the_low_level_details.yml +48 -0
- data/spec/cassettes/Docker_Resource_Container/start/brings_a_container_into_state_running.yml +30 -0
- data/spec/cassettes/Docker_Resource_Container/start/raises_an_exception_for_an_unknown_container.yml +31 -0
- data/spec/cassettes/Docker_Resource_Container/stop/halts_a_container.yml +30 -0
- data/spec/cassettes/Docker_Resource_Container/stop/raises_an_exception_for_an_unknown_container.yml +31 -0
- data/spec/cassettes/Docker_Resource_Container/wait/blocks_until_the_container_stops.yml +31 -0
- data/spec/cassettes/Docker_Resource_Container/wait/raises_an_exception_for_an_unknown_container.yml +31 -0
- data/spec/cassettes/test_setup/create_container_connection_post.yml +33 -0
- data/spec/cassettes/test_setup/create_container_container_changes.yml +33 -0
- data/spec/cassettes/test_setup/create_container_container_kill.yml +34 -0
- data/spec/cassettes/test_setup/create_container_container_lists1.yml +34 -0
- data/spec/cassettes/test_setup/create_container_container_lists2.yml +33 -0
- data/spec/cassettes/test_setup/create_container_container_logs.yml +33 -0
- data/spec/cassettes/test_setup/create_container_container_remove.yml +33 -0
- data/spec/cassettes/test_setup/create_container_container_restarts.yml +34 -0
- data/spec/cassettes/test_setup/create_container_container_shows.yml +33 -0
- data/spec/cassettes/test_setup/create_container_container_start.yml +33 -0
- data/spec/cassettes/test_setup/create_container_container_stop.yml +34 -0
- data/spec/cassettes/test_setup/create_container_container_wait.yml +33 -0
- data/spec/cassettes/test_setup/delete_container.yml +405 -0
- data/spec/cassettes/test_setup/start_container.yml +235 -0
- data/spec/cassettes/test_setup/wait_on_container.yml +63 -0
- data/spec/docker/api_spec.rb +37 -0
- data/spec/docker/connection_spec.rb +81 -0
- data/spec/docker/resource/container_spec.rb +288 -0
- data/spec/helpers.rb +48 -0
- data/spec/spec_helper.rb +31 -0
- metadata +361 -0
data/spec/helpers.rb
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
module Helpers
|
2
|
+
|
3
|
+
def create_container(name, options = {})
|
4
|
+
VCR.use_cassette("test_setup/create_container_#{name}") do
|
5
|
+
command = options.delete(:command) || 'env'
|
6
|
+
container_resource.create(command, 'base', options)['Id']
|
7
|
+
end
|
8
|
+
end
|
9
|
+
|
10
|
+
def start_container(id)
|
11
|
+
VCR.use_cassette('test_setup/start_container') do
|
12
|
+
container_resource.start(id)
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
def delete_containers(*ids)
|
17
|
+
VCR.use_cassette('test_setup/delete_container') do
|
18
|
+
ids.each do |id|
|
19
|
+
container_resource.remove(id, true) if id
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
def wait_on_container(id)
|
25
|
+
VCR.use_cassette('test_setup/wait_on_container') do
|
26
|
+
container_resource.wait(id)
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
def create_and_start_container(name, options = {})
|
31
|
+
wait = options.delete(:wait)
|
32
|
+
|
33
|
+
id = create_container(name, options)
|
34
|
+
start_container(id)
|
35
|
+
wait_on_container(id) if wait
|
36
|
+
|
37
|
+
id
|
38
|
+
end
|
39
|
+
|
40
|
+
def hello_world_command
|
41
|
+
['/bin/sh', '-c', 'while true; do echo hello world; sleep 1; done']
|
42
|
+
end
|
43
|
+
|
44
|
+
def container_resource
|
45
|
+
@container ||= Docker::API.new(base_url: 'http://10.0.5.5:4243').containers
|
46
|
+
end
|
47
|
+
|
48
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'bundler/setup'
|
3
|
+
|
4
|
+
require 'awesome_print'
|
5
|
+
require 'webmock/rspec'
|
6
|
+
require 'vcr'
|
7
|
+
require 'docker'
|
8
|
+
require 'helpers'
|
9
|
+
|
10
|
+
|
11
|
+
VCR.configure do |config|
|
12
|
+
config.cassette_library_dir = 'spec/cassettes'
|
13
|
+
config.hook_into :webmock
|
14
|
+
config.configure_rspec_metadata!
|
15
|
+
# :none replays all requests
|
16
|
+
# :once record if no casette available, otherwise replay or error
|
17
|
+
# :all re-record all request
|
18
|
+
# config.default_cassette_options = {:record => :all}
|
19
|
+
end
|
20
|
+
|
21
|
+
|
22
|
+
RSpec.configure do |config|
|
23
|
+
config.treat_symbols_as_metadata_keys_with_true_values = true
|
24
|
+
config.run_all_when_everything_filtered = true
|
25
|
+
config.filter_run :focus
|
26
|
+
config.order = 'random'
|
27
|
+
config.include Helpers
|
28
|
+
end
|
29
|
+
|
30
|
+
|
31
|
+
|
metadata
ADDED
@@ -0,0 +1,361 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: docker-client
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Georg Kunz
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2013-05-27 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: bundler
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ~>
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '1.3'
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.3'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: rake
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
34
|
+
requirements:
|
35
|
+
- - ! '>='
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '0'
|
38
|
+
type: :development
|
39
|
+
prerelease: false
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: rspec
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ~>
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '2.13'
|
54
|
+
type: :development
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '2.13'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: vcr
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ~>
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '2.5'
|
70
|
+
type: :development
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '2.5'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: webmock
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ~>
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '1.11'
|
86
|
+
type: :development
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ~>
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '1.11'
|
94
|
+
- !ruby/object:Gem::Dependency
|
95
|
+
name: activesupport
|
96
|
+
requirement: !ruby/object:Gem::Requirement
|
97
|
+
none: false
|
98
|
+
requirements:
|
99
|
+
- - ~>
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: 3.2.13
|
102
|
+
type: :development
|
103
|
+
prerelease: false
|
104
|
+
version_requirements: !ruby/object:Gem::Requirement
|
105
|
+
none: false
|
106
|
+
requirements:
|
107
|
+
- - ~>
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: 3.2.13
|
110
|
+
- !ruby/object:Gem::Dependency
|
111
|
+
name: multi_json
|
112
|
+
requirement: !ruby/object:Gem::Requirement
|
113
|
+
none: false
|
114
|
+
requirements:
|
115
|
+
- - ! '>='
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
none: false
|
122
|
+
requirements:
|
123
|
+
- - ! '>='
|
124
|
+
- !ruby/object:Gem::Version
|
125
|
+
version: '0'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: json
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
none: false
|
130
|
+
requirements:
|
131
|
+
- - ! '>='
|
132
|
+
- !ruby/object:Gem::Version
|
133
|
+
version: '0'
|
134
|
+
type: :runtime
|
135
|
+
prerelease: false
|
136
|
+
version_requirements: !ruby/object:Gem::Requirement
|
137
|
+
none: false
|
138
|
+
requirements:
|
139
|
+
- - ! '>='
|
140
|
+
- !ruby/object:Gem::Version
|
141
|
+
version: '0'
|
142
|
+
- !ruby/object:Gem::Dependency
|
143
|
+
name: curb
|
144
|
+
requirement: !ruby/object:Gem::Requirement
|
145
|
+
none: false
|
146
|
+
requirements:
|
147
|
+
- - ! '>='
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: '0'
|
150
|
+
type: :runtime
|
151
|
+
prerelease: false
|
152
|
+
version_requirements: !ruby/object:Gem::Requirement
|
153
|
+
none: false
|
154
|
+
requirements:
|
155
|
+
- - ! '>='
|
156
|
+
- !ruby/object:Gem::Version
|
157
|
+
version: '0'
|
158
|
+
- !ruby/object:Gem::Dependency
|
159
|
+
name: guard
|
160
|
+
requirement: !ruby/object:Gem::Requirement
|
161
|
+
none: false
|
162
|
+
requirements:
|
163
|
+
- - ! '>='
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: '0'
|
166
|
+
type: :runtime
|
167
|
+
prerelease: false
|
168
|
+
version_requirements: !ruby/object:Gem::Requirement
|
169
|
+
none: false
|
170
|
+
requirements:
|
171
|
+
- - ! '>='
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0'
|
174
|
+
- !ruby/object:Gem::Dependency
|
175
|
+
name: guard-rspec
|
176
|
+
requirement: !ruby/object:Gem::Requirement
|
177
|
+
none: false
|
178
|
+
requirements:
|
179
|
+
- - ! '>='
|
180
|
+
- !ruby/object:Gem::Version
|
181
|
+
version: '0'
|
182
|
+
type: :runtime
|
183
|
+
prerelease: false
|
184
|
+
version_requirements: !ruby/object:Gem::Requirement
|
185
|
+
none: false
|
186
|
+
requirements:
|
187
|
+
- - ! '>='
|
188
|
+
- !ruby/object:Gem::Version
|
189
|
+
version: '0'
|
190
|
+
- !ruby/object:Gem::Dependency
|
191
|
+
name: awesome_print
|
192
|
+
requirement: !ruby/object:Gem::Requirement
|
193
|
+
none: false
|
194
|
+
requirements:
|
195
|
+
- - ! '>='
|
196
|
+
- !ruby/object:Gem::Version
|
197
|
+
version: '0'
|
198
|
+
type: :runtime
|
199
|
+
prerelease: false
|
200
|
+
version_requirements: !ruby/object:Gem::Requirement
|
201
|
+
none: false
|
202
|
+
requirements:
|
203
|
+
- - ! '>='
|
204
|
+
- !ruby/object:Gem::Version
|
205
|
+
version: '0'
|
206
|
+
description: Docker client
|
207
|
+
email:
|
208
|
+
- kwd@gmx.ch
|
209
|
+
executables: []
|
210
|
+
extensions: []
|
211
|
+
extra_rdoc_files: []
|
212
|
+
files:
|
213
|
+
- .gitignore
|
214
|
+
- .rspec
|
215
|
+
- .rvmrc
|
216
|
+
- Gemfile
|
217
|
+
- Guardfile
|
218
|
+
- LICENSE.txt
|
219
|
+
- MIT-LICENSE
|
220
|
+
- README.md
|
221
|
+
- Rakefile
|
222
|
+
- docker.gemspec
|
223
|
+
- lib/docker.rb
|
224
|
+
- lib/docker/api.rb
|
225
|
+
- lib/docker/connection.rb
|
226
|
+
- lib/docker/error.rb
|
227
|
+
- lib/docker/error/bad_parameter_error.rb
|
228
|
+
- lib/docker/error/container_not_found.rb
|
229
|
+
- lib/docker/error/internal_server_error.rb
|
230
|
+
- lib/docker/error/not_found_error.rb
|
231
|
+
- lib/docker/resource.rb
|
232
|
+
- lib/docker/resource/base.rb
|
233
|
+
- lib/docker/resource/container.rb
|
234
|
+
- lib/docker/resource/image.rb
|
235
|
+
- lib/docker/version.rb
|
236
|
+
- spec/cassettes/Docker_Connection/returns_a_valid_response_for_a_basic_request.yml
|
237
|
+
- spec/cassettes/Docker_Connection/returns_a_valid_response_for_get_request.yml
|
238
|
+
- spec/cassettes/Docker_Connection/returns_a_valid_response_for_post_request.yml
|
239
|
+
- spec/cassettes/Docker_Connection/returns_status_404_for_non_existent_path.yml
|
240
|
+
- spec/cassettes/Docker_Connection/sets_given_query_parameters.yml
|
241
|
+
- spec/cassettes/Docker_Connection/sets_given_request_headers.yml
|
242
|
+
- spec/cassettes/Docker_Resource_Container/changes/inspects_the_container_s_filesystem_changes.yml
|
243
|
+
- spec/cassettes/Docker_Resource_Container/create/raises_an_exception_when_called_with_invalid_options.yml
|
244
|
+
- spec/cassettes/Docker_Resource_Container/create/with_many_settings.yml
|
245
|
+
- spec/cassettes/Docker_Resource_Container/create/with_minimal_settings.yml
|
246
|
+
- spec/cassettes/Docker_Resource_Container/kill/raises_an_exception_for_an_unknow_container.yml
|
247
|
+
- spec/cassettes/Docker_Resource_Container/kill/the_container.yml
|
248
|
+
- spec/cassettes/Docker_Resource_Container/lists/all_running_containers.yml
|
249
|
+
- spec/cassettes/Docker_Resource_Container/lists/limit_last_created_containers.yml
|
250
|
+
- spec/cassettes/Docker_Resource_Container/lists/non-running_processes_too.yml
|
251
|
+
- spec/cassettes/Docker_Resource_Container/lists/processes_before_a_certain_created_container.yml
|
252
|
+
- spec/cassettes/Docker_Resource_Container/lists/processes_since_a_certain_created_container.yml
|
253
|
+
- spec/cassettes/Docker_Resource_Container/logs/returns_the_stderr_of_a_container.yml
|
254
|
+
- spec/cassettes/Docker_Resource_Container/logs/returns_the_stdout_of_a_container.yml
|
255
|
+
- spec/cassettes/Docker_Resource_Container/remove/deletes_the_container.yml
|
256
|
+
- spec/cassettes/Docker_Resource_Container/remove/raises_an_exception_with_an_invalid_container.yml
|
257
|
+
- spec/cassettes/Docker_Resource_Container/restarts/raises_an_exception_for_an_unknown_container.yml
|
258
|
+
- spec/cassettes/Docker_Resource_Container/restarts/the_container.yml
|
259
|
+
- spec/cassettes/Docker_Resource_Container/shows/the_low_level_details.yml
|
260
|
+
- spec/cassettes/Docker_Resource_Container/start/brings_a_container_into_state_running.yml
|
261
|
+
- spec/cassettes/Docker_Resource_Container/start/raises_an_exception_for_an_unknown_container.yml
|
262
|
+
- spec/cassettes/Docker_Resource_Container/stop/halts_a_container.yml
|
263
|
+
- spec/cassettes/Docker_Resource_Container/stop/raises_an_exception_for_an_unknown_container.yml
|
264
|
+
- spec/cassettes/Docker_Resource_Container/wait/blocks_until_the_container_stops.yml
|
265
|
+
- spec/cassettes/Docker_Resource_Container/wait/raises_an_exception_for_an_unknown_container.yml
|
266
|
+
- spec/cassettes/test_setup/create_container_connection_post.yml
|
267
|
+
- spec/cassettes/test_setup/create_container_container_changes.yml
|
268
|
+
- spec/cassettes/test_setup/create_container_container_kill.yml
|
269
|
+
- spec/cassettes/test_setup/create_container_container_lists1.yml
|
270
|
+
- spec/cassettes/test_setup/create_container_container_lists2.yml
|
271
|
+
- spec/cassettes/test_setup/create_container_container_logs.yml
|
272
|
+
- spec/cassettes/test_setup/create_container_container_remove.yml
|
273
|
+
- spec/cassettes/test_setup/create_container_container_restarts.yml
|
274
|
+
- spec/cassettes/test_setup/create_container_container_shows.yml
|
275
|
+
- spec/cassettes/test_setup/create_container_container_start.yml
|
276
|
+
- spec/cassettes/test_setup/create_container_container_stop.yml
|
277
|
+
- spec/cassettes/test_setup/create_container_container_wait.yml
|
278
|
+
- spec/cassettes/test_setup/delete_container.yml
|
279
|
+
- spec/cassettes/test_setup/start_container.yml
|
280
|
+
- spec/cassettes/test_setup/wait_on_container.yml
|
281
|
+
- spec/docker/api_spec.rb
|
282
|
+
- spec/docker/connection_spec.rb
|
283
|
+
- spec/docker/resource/container_spec.rb
|
284
|
+
- spec/helpers.rb
|
285
|
+
- spec/spec_helper.rb
|
286
|
+
homepage: https://github.com/geku/docker-client
|
287
|
+
licenses:
|
288
|
+
- MIT
|
289
|
+
post_install_message:
|
290
|
+
rdoc_options: []
|
291
|
+
require_paths:
|
292
|
+
- lib
|
293
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
294
|
+
none: false
|
295
|
+
requirements:
|
296
|
+
- - ! '>='
|
297
|
+
- !ruby/object:Gem::Version
|
298
|
+
version: '1.9'
|
299
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
300
|
+
none: false
|
301
|
+
requirements:
|
302
|
+
- - ! '>='
|
303
|
+
- !ruby/object:Gem::Version
|
304
|
+
version: '0'
|
305
|
+
requirements: []
|
306
|
+
rubyforge_project:
|
307
|
+
rubygems_version: 1.8.24
|
308
|
+
signing_key:
|
309
|
+
specification_version: 3
|
310
|
+
summary: Docker client library to access the Docker remote API.
|
311
|
+
test_files:
|
312
|
+
- spec/cassettes/Docker_Connection/returns_a_valid_response_for_a_basic_request.yml
|
313
|
+
- spec/cassettes/Docker_Connection/returns_a_valid_response_for_get_request.yml
|
314
|
+
- spec/cassettes/Docker_Connection/returns_a_valid_response_for_post_request.yml
|
315
|
+
- spec/cassettes/Docker_Connection/returns_status_404_for_non_existent_path.yml
|
316
|
+
- spec/cassettes/Docker_Connection/sets_given_query_parameters.yml
|
317
|
+
- spec/cassettes/Docker_Connection/sets_given_request_headers.yml
|
318
|
+
- spec/cassettes/Docker_Resource_Container/changes/inspects_the_container_s_filesystem_changes.yml
|
319
|
+
- spec/cassettes/Docker_Resource_Container/create/raises_an_exception_when_called_with_invalid_options.yml
|
320
|
+
- spec/cassettes/Docker_Resource_Container/create/with_many_settings.yml
|
321
|
+
- spec/cassettes/Docker_Resource_Container/create/with_minimal_settings.yml
|
322
|
+
- spec/cassettes/Docker_Resource_Container/kill/raises_an_exception_for_an_unknow_container.yml
|
323
|
+
- spec/cassettes/Docker_Resource_Container/kill/the_container.yml
|
324
|
+
- spec/cassettes/Docker_Resource_Container/lists/all_running_containers.yml
|
325
|
+
- spec/cassettes/Docker_Resource_Container/lists/limit_last_created_containers.yml
|
326
|
+
- spec/cassettes/Docker_Resource_Container/lists/non-running_processes_too.yml
|
327
|
+
- spec/cassettes/Docker_Resource_Container/lists/processes_before_a_certain_created_container.yml
|
328
|
+
- spec/cassettes/Docker_Resource_Container/lists/processes_since_a_certain_created_container.yml
|
329
|
+
- spec/cassettes/Docker_Resource_Container/logs/returns_the_stderr_of_a_container.yml
|
330
|
+
- spec/cassettes/Docker_Resource_Container/logs/returns_the_stdout_of_a_container.yml
|
331
|
+
- spec/cassettes/Docker_Resource_Container/remove/deletes_the_container.yml
|
332
|
+
- spec/cassettes/Docker_Resource_Container/remove/raises_an_exception_with_an_invalid_container.yml
|
333
|
+
- spec/cassettes/Docker_Resource_Container/restarts/raises_an_exception_for_an_unknown_container.yml
|
334
|
+
- spec/cassettes/Docker_Resource_Container/restarts/the_container.yml
|
335
|
+
- spec/cassettes/Docker_Resource_Container/shows/the_low_level_details.yml
|
336
|
+
- spec/cassettes/Docker_Resource_Container/start/brings_a_container_into_state_running.yml
|
337
|
+
- spec/cassettes/Docker_Resource_Container/start/raises_an_exception_for_an_unknown_container.yml
|
338
|
+
- spec/cassettes/Docker_Resource_Container/stop/halts_a_container.yml
|
339
|
+
- spec/cassettes/Docker_Resource_Container/stop/raises_an_exception_for_an_unknown_container.yml
|
340
|
+
- spec/cassettes/Docker_Resource_Container/wait/blocks_until_the_container_stops.yml
|
341
|
+
- spec/cassettes/Docker_Resource_Container/wait/raises_an_exception_for_an_unknown_container.yml
|
342
|
+
- spec/cassettes/test_setup/create_container_connection_post.yml
|
343
|
+
- spec/cassettes/test_setup/create_container_container_changes.yml
|
344
|
+
- spec/cassettes/test_setup/create_container_container_kill.yml
|
345
|
+
- spec/cassettes/test_setup/create_container_container_lists1.yml
|
346
|
+
- spec/cassettes/test_setup/create_container_container_lists2.yml
|
347
|
+
- spec/cassettes/test_setup/create_container_container_logs.yml
|
348
|
+
- spec/cassettes/test_setup/create_container_container_remove.yml
|
349
|
+
- spec/cassettes/test_setup/create_container_container_restarts.yml
|
350
|
+
- spec/cassettes/test_setup/create_container_container_shows.yml
|
351
|
+
- spec/cassettes/test_setup/create_container_container_start.yml
|
352
|
+
- spec/cassettes/test_setup/create_container_container_stop.yml
|
353
|
+
- spec/cassettes/test_setup/create_container_container_wait.yml
|
354
|
+
- spec/cassettes/test_setup/delete_container.yml
|
355
|
+
- spec/cassettes/test_setup/start_container.yml
|
356
|
+
- spec/cassettes/test_setup/wait_on_container.yml
|
357
|
+
- spec/docker/api_spec.rb
|
358
|
+
- spec/docker/connection_spec.rb
|
359
|
+
- spec/docker/resource/container_spec.rb
|
360
|
+
- spec/helpers.rb
|
361
|
+
- spec/spec_helper.rb
|