vx-container_connector 0.5.3 → 0.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 50c55ea07a69070c996f4236c64d83249a72223c
|
4
|
+
data.tar.gz: 0003c8da861c71f2ac68b6b77cbfb4ef39b21baf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d98034882190dcf2c771af7df2f9e5ad48c8d24b62f38f74cdad9ce87b88b9224cdd4fc03c20135914262dedec9a5246f8d0be77f9d50ab16aad35d15849818f
|
7
|
+
data.tar.gz: de3113970e59c8b4537abd81c85c1abfafaf5aaf8428bbcb0769b7565b41f665a7d8356c53d91bde431508a0fb083cf5fe3da632bc1f1a866379eb630b9a5b83
|
@@ -21,7 +21,7 @@ module Vx
|
|
21
21
|
@user = options[:user] || "vexor"
|
22
22
|
@password = options[:password] || "vexor"
|
23
23
|
@init = options[:init] || %w{ /sbin/my_init }
|
24
|
-
@image = options[:image] || "
|
24
|
+
@image = options[:image] || "ubuntu"
|
25
25
|
@remote_dir = options[:remote_dir] || "/home/#{user}"
|
26
26
|
end
|
27
27
|
|
@@ -88,6 +88,7 @@ module Vx
|
|
88
88
|
ensure
|
89
89
|
instrument("kill_container", instrumentation) do
|
90
90
|
container.kill
|
91
|
+
|
91
92
|
end
|
92
93
|
end
|
93
94
|
end
|
data/spec/lib/docker_spec.rb
CHANGED
@@ -32,10 +32,6 @@ describe Vx::ContainerConnector::Docker do
|
|
32
32
|
context "image" do
|
33
33
|
subject { conn.image }
|
34
34
|
|
35
|
-
it "by default should eq 'dmexe/vexor-recise-full'" do
|
36
|
-
expect(subject).to eq 'dmexe/vexor-precise-full'
|
37
|
-
end
|
38
|
-
|
39
35
|
it "when passed via options should be" do
|
40
36
|
expect(described_class.new(image: "image").image).to eq 'image'
|
41
37
|
end
|
@@ -45,7 +41,7 @@ describe Vx::ContainerConnector::Docker do
|
|
45
41
|
subject { conn.init }
|
46
42
|
|
47
43
|
it "by default should be" do
|
48
|
-
expect(subject).to eq ["/sbin/
|
44
|
+
expect(subject).to eq ["/sbin/my_init"]
|
49
45
|
end
|
50
46
|
|
51
47
|
it "when passed via options should be" do
|
@@ -55,7 +51,7 @@ describe Vx::ContainerConnector::Docker do
|
|
55
51
|
|
56
52
|
context "start container", docker: true do
|
57
53
|
|
58
|
-
let(:conn) { described_class.new image: "
|
54
|
+
let(:conn) { described_class.new image: "vexor/trusty:1.0.0" }
|
59
55
|
|
60
56
|
it 'should be successfuly' do
|
61
57
|
rs = nil
|
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_runtime_dependency 'docker-api', '1.
|
21
|
+
spec.add_runtime_dependency 'docker-api', '1.12.0'
|
22
22
|
spec.add_runtime_dependency 'vx-common-spawn', '= 0.0.8'
|
23
23
|
|
24
24
|
spec.add_development_dependency "bundler", "~> 1.3"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vx-container_connector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitry Galinsky
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: docker-api
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 1.
|
19
|
+
version: 1.12.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 1.
|
26
|
+
version: 1.12.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: vx-common-spawn
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|