vx-container_connector 0.2.0.pre33 → 0.2.0.pre34

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: 9f65b27b8741bc87054eb0ad857e6d8e2bcd56a9
4
- data.tar.gz: d73945a6819eb6c5fb08b2bdfd7c5ae9bcc0b6dc
3
+ metadata.gz: 1bcc64af0255caa21f2b2e6af90f3485c12d4442
4
+ data.tar.gz: d7d81ead114fbe0c9edbf8ec381ca6d5e80f9a04
5
5
  SHA512:
6
- metadata.gz: a96f062f5f89f5958070223903e991ef1f14d82f285b60a8a99ddc9fe4d5d47d39f23f0d4917a15ea9327d87daa160eb5fc415a730fe70c0d676a35e4ca7d67e
7
- data.tar.gz: 142a35434c511df969bea6d3dadf67c82c7134aa90ef60ccaf4a702dfd356013bf0c4737e5abe3977c4ab39bc06bceeaebfcf6ed627e27682d416989252dc7c7
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] || "ci"
38
- @password = options[:password] || "ci"
39
- @init = options[:init] || %w{ /usr/bin/runsvdir -P /etc/service }
40
- @image = options[:image] || "dmexe/ci"
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
@@ -1,5 +1,5 @@
1
1
  module Vx
2
2
  module ContainerConnector
3
- VERSION = "0.2.0.pre33"
3
+ VERSION = "0.2.0.pre34"
4
4
  end
5
5
  end
@@ -5,22 +5,19 @@ describe Vx::ContainerConnector::Docker do
5
5
 
6
6
  it { should be }
7
7
 
8
- context "logger" do
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" => ["/usr/bin/runsvdir", "-P", "/etc/service"],
16
- "Image" => "dmexe/ci") }
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 'ci'" do
23
- expect(subject).to eq 'ci'
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 'ci'" do
35
- expect(subject).to eq 'ci'
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/ci'" do
47
- expect(subject).to eq 'dmexe/ci'
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 ["/usr/bin/runsvdir", "-P", "/etc/service"]
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/ci\n"
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.pre33
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-16 00:00:00.000000000 Z
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.1.11
141
+ rubygems_version: 2.0.14
142
142
  signing_key:
143
143
  specification_version: 4
144
144
  summary: summary