vx-container_connector 0.2.0.pre33 → 0.2.0.pre34
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vx/container_connector/docker.rb +4 -4
- data/lib/vx/container_connector/version.rb +1 -1
- data/spec/lib/docker_spec.rb +11 -14
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1bcc64af0255caa21f2b2e6af90f3485c12d4442
|
4
|
+
data.tar.gz: d7d81ead114fbe0c9edbf8ec381ca6d5e80f9a04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b357df4f288833782aaf774c0a516cd595ed71d6503eba6ef397b0c73575f0df7d213ad80801ce54ededba6cc412a4dd2f1972ea7056e5b883cbf658038dadb
|
7
|
+
data.tar.gz: 988bf8e4aee7cdc47b5b95bffc8662ecbf1d53c61a5b7209c01fbea99aad9584bd8fb686519958f10d9f68952e2c96318c1944a0996e0cf80a03e80601af940a
|
@@ -34,10 +34,10 @@ module Vx
|
|
34
34
|
end
|
35
35
|
|
36
36
|
def initialize(options = {})
|
37
|
-
@user = options[:user] || "
|
38
|
-
@password = options[:password] || "
|
39
|
-
@init = options[:init] ||
|
40
|
-
@image = options[:image] || "dmexe/
|
37
|
+
@user = options[:user] || "vexor"
|
38
|
+
@password = options[:password] || "vexor"
|
39
|
+
@init = options[:init] || %w{ /sbin/init --startup-event dockerboot }
|
40
|
+
@image = options[:image] || "dmexe/precise"
|
41
41
|
@remote_dir = options[:remote_dir] || "/home/#{user}"
|
42
42
|
@logger = options[:logger] || ::Logger.new(STDOUT)
|
43
43
|
end
|
data/spec/lib/docker_spec.rb
CHANGED
@@ -5,22 +5,19 @@ describe Vx::ContainerConnector::Docker do
|
|
5
5
|
|
6
6
|
it { should be }
|
7
7
|
|
8
|
-
|
9
|
-
subject { conn.logger }
|
10
|
-
it { should be }
|
11
|
-
end
|
8
|
+
its(:logger) { should be }
|
12
9
|
|
13
10
|
context "container_options" do
|
14
11
|
subject { conn.container_options }
|
15
|
-
it { should eq("Cmd" => ["/
|
16
|
-
"Image" => "dmexe/
|
12
|
+
it { should eq("Cmd" => ["/sbin/init", "--startup-event", "dockerboot"],
|
13
|
+
"Image" => "dmexe/precise") }
|
17
14
|
end
|
18
15
|
|
19
16
|
context "user" do
|
20
17
|
subject { conn.user }
|
21
18
|
|
22
|
-
it "by default should eq '
|
23
|
-
expect(subject).to eq '
|
19
|
+
it "by default should eq 'vexor'" do
|
20
|
+
expect(subject).to eq 'vexor'
|
24
21
|
end
|
25
22
|
|
26
23
|
it "when passed via options should be" do
|
@@ -31,8 +28,8 @@ describe Vx::ContainerConnector::Docker do
|
|
31
28
|
context "password" do
|
32
29
|
subject { conn.password }
|
33
30
|
|
34
|
-
it "by default should eq '
|
35
|
-
expect(subject).to eq '
|
31
|
+
it "by default should eq 'vexor'" do
|
32
|
+
expect(subject).to eq 'vexor'
|
36
33
|
end
|
37
34
|
|
38
35
|
it "when passed via options should be" do
|
@@ -43,8 +40,8 @@ describe Vx::ContainerConnector::Docker do
|
|
43
40
|
context "image" do
|
44
41
|
subject { conn.image }
|
45
42
|
|
46
|
-
it "by default should eq 'dmexe/
|
47
|
-
expect(subject).to eq 'dmexe/
|
43
|
+
it "by default should eq 'dmexe/precise'" do
|
44
|
+
expect(subject).to eq 'dmexe/precise'
|
48
45
|
end
|
49
46
|
|
50
47
|
it "when passed via options should be" do
|
@@ -56,7 +53,7 @@ describe Vx::ContainerConnector::Docker do
|
|
56
53
|
subject { conn.init }
|
57
54
|
|
58
55
|
it "by default should be" do
|
59
|
-
expect(subject).to eq ["/
|
56
|
+
expect(subject).to eq ["/sbin/init", "--startup-event", "dockerboot"]
|
60
57
|
end
|
61
58
|
|
62
59
|
it "when passed via options should be" do
|
@@ -84,7 +81,7 @@ describe Vx::ContainerConnector::Docker do
|
|
84
81
|
end
|
85
82
|
end
|
86
83
|
|
87
|
-
expect(rs).to eq "/home/
|
84
|
+
expect(rs).to eq "/home/vexor\n"
|
88
85
|
expect(code).to eq 0
|
89
86
|
end
|
90
87
|
|
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.2.0.
|
4
|
+
version: 0.2.0.pre34
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dmitry Galinsky
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-12-
|
11
|
+
date: 2013-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: docker-api
|
@@ -138,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
138
138
|
version: 1.3.1
|
139
139
|
requirements: []
|
140
140
|
rubyforge_project:
|
141
|
-
rubygems_version: 2.
|
141
|
+
rubygems_version: 2.0.14
|
142
142
|
signing_key:
|
143
143
|
specification_version: 4
|
144
144
|
summary: summary
|