vagrantup 0.1.4 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/bin/vagrant +1 -1
- data/bin/vagrant-box +1 -2
- data/bin/vagrant-down +1 -2
- data/bin/vagrant-halt +1 -2
- data/bin/vagrant-init +1 -2
- data/bin/vagrant-package +1 -2
- data/bin/vagrant-reload +1 -2
- data/bin/vagrant-resume +1 -2
- data/bin/vagrant-ssh +1 -2
- data/bin/vagrant-status +29 -0
- data/bin/vagrant-suspend +1 -2
- data/bin/vagrant-up +1 -2
- data/config/default.rb +5 -9
- data/keys/README.md +10 -0
- data/keys/vagrant +27 -0
- data/keys/vagrant.pub +1 -0
- data/lib/vagrant.rb +10 -5
- data/lib/vagrant/actions/base.rb +14 -0
- data/lib/vagrant/actions/box/download.rb +3 -0
- data/lib/vagrant/actions/collection.rb +36 -0
- data/lib/vagrant/actions/runner.rb +4 -10
- data/lib/vagrant/actions/vm/boot.rb +4 -5
- data/lib/vagrant/actions/vm/customize.rb +17 -0
- data/lib/vagrant/actions/vm/destroy.rb +11 -2
- data/lib/vagrant/actions/vm/forward_ports.rb +24 -0
- data/lib/vagrant/actions/vm/import.rb +1 -0
- data/lib/vagrant/actions/vm/provision.rb +30 -52
- data/lib/vagrant/actions/vm/reload.rb +2 -2
- data/lib/vagrant/actions/vm/shared_folders.rb +37 -25
- data/lib/vagrant/actions/vm/up.rb +8 -4
- data/lib/vagrant/active_list.rb +66 -0
- data/lib/vagrant/commands.rb +44 -0
- data/lib/vagrant/config.rb +64 -47
- data/lib/vagrant/downloaders/base.rb +3 -0
- data/lib/vagrant/downloaders/file.rb +11 -11
- data/lib/vagrant/env.rb +48 -12
- data/lib/vagrant/provisioners/base.rb +22 -0
- data/lib/vagrant/provisioners/chef.rb +102 -0
- data/lib/vagrant/provisioners/chef_server.rb +96 -0
- data/lib/vagrant/provisioners/chef_solo.rb +67 -0
- data/lib/vagrant/ssh.rb +25 -6
- data/lib/vagrant/stacked_proc_runner.rb +33 -0
- data/lib/vagrant/vm.rb +8 -0
- data/test/test_helper.rb +22 -6
- data/test/vagrant/actions/box/download_test.rb +11 -0
- data/test/vagrant/actions/collection_test.rb +110 -0
- data/test/vagrant/actions/runner_test.rb +11 -7
- data/test/vagrant/actions/vm/boot_test.rb +7 -7
- data/test/vagrant/actions/vm/customize_test.rb +16 -0
- data/test/vagrant/actions/vm/destroy_test.rb +19 -6
- data/test/vagrant/actions/vm/forward_ports_test.rb +52 -0
- data/test/vagrant/actions/vm/import_test.rb +10 -3
- data/test/vagrant/actions/vm/provision_test.rb +75 -70
- data/test/vagrant/actions/vm/reload_test.rb +3 -2
- data/test/vagrant/actions/vm/shared_folders_test.rb +62 -9
- data/test/vagrant/actions/vm/up_test.rb +4 -4
- data/test/vagrant/active_list_test.rb +169 -0
- data/test/vagrant/config_test.rb +145 -29
- data/test/vagrant/downloaders/base_test.rb +7 -0
- data/test/vagrant/downloaders/file_test.rb +12 -18
- data/test/vagrant/env_test.rb +96 -23
- data/test/vagrant/provisioners/base_test.rb +27 -0
- data/test/vagrant/provisioners/chef_server_test.rb +175 -0
- data/test/vagrant/provisioners/chef_solo_test.rb +142 -0
- data/test/vagrant/provisioners/chef_test.rb +116 -0
- data/test/vagrant/ssh_test.rb +29 -8
- data/test/vagrant/stacked_proc_runner_test.rb +43 -0
- data/test/vagrant/vm_test.rb +23 -0
- data/vagrant.gemspec +34 -7
- metadata +33 -5
- data/script/vagrant-ssh-expect.sh +0 -22
@@ -0,0 +1,43 @@
|
|
1
|
+
require File.join(File.dirname(__FILE__), '..', 'test_helper')
|
2
|
+
|
3
|
+
class StackedProcRunnerTest < Test::Unit::TestCase
|
4
|
+
class TestClass
|
5
|
+
include Vagrant::StackedProcRunner
|
6
|
+
end
|
7
|
+
|
8
|
+
setup do
|
9
|
+
@instance = TestClass.new
|
10
|
+
@instance.proc_stack.clear
|
11
|
+
end
|
12
|
+
|
13
|
+
should "not run the procs right away" do
|
14
|
+
obj = mock("obj")
|
15
|
+
obj.expects(:foo).never
|
16
|
+
@instance.push_proc { |config| obj.foo }
|
17
|
+
@instance.push_proc { |config| obj.foo }
|
18
|
+
@instance.push_proc { |config| obj.foo }
|
19
|
+
end
|
20
|
+
|
21
|
+
should "run the blocks when run_procs! is ran" do
|
22
|
+
obj = mock("obj")
|
23
|
+
obj.expects(:foo).times(2)
|
24
|
+
@instance.push_proc { obj.foo }
|
25
|
+
@instance.push_proc { obj.foo }
|
26
|
+
@instance.run_procs!
|
27
|
+
end
|
28
|
+
|
29
|
+
should "run the blocks with the same arguments" do
|
30
|
+
passed_config = mock("config")
|
31
|
+
@instance.push_proc { |config| assert passed_config.equal?(config) }
|
32
|
+
@instance.push_proc { |config| assert passed_config.equal?(config) }
|
33
|
+
@instance.run_procs!(passed_config)
|
34
|
+
end
|
35
|
+
|
36
|
+
should "not clear the blocks after running" do
|
37
|
+
obj = mock("obj")
|
38
|
+
obj.expects(:foo).times(2)
|
39
|
+
@instance.push_proc { obj.foo }
|
40
|
+
@instance.run_procs!
|
41
|
+
@instance.run_procs!
|
42
|
+
end
|
43
|
+
end
|
data/test/vagrant/vm_test.rb
CHANGED
@@ -35,6 +35,29 @@ class VMTest < Test::Unit::TestCase
|
|
35
35
|
context "vagrant VM instance" do
|
36
36
|
setup do
|
37
37
|
@vm = Vagrant::VM.new(@mock_vm)
|
38
|
+
@mock_vm.stubs(:uuid).returns("foo")
|
39
|
+
end
|
40
|
+
|
41
|
+
context "uuid" do
|
42
|
+
should "call UUID on VM object" do
|
43
|
+
uuid = mock("uuid")
|
44
|
+
@mock_vm.expects(:uuid).once.returns(uuid)
|
45
|
+
assert_equal uuid, @vm.uuid
|
46
|
+
end
|
47
|
+
|
48
|
+
should "return nil if vm is nil" do
|
49
|
+
@vm.expects(:vm).returns(nil)
|
50
|
+
assert @vm.uuid.nil?
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
context "reloading" do
|
55
|
+
should "load the same VM and set it" do
|
56
|
+
new_vm = mock("vm")
|
57
|
+
VirtualBox::VM.expects(:find).with(@mock_vm.uuid).returns(new_vm)
|
58
|
+
@vm.reload!
|
59
|
+
assert_equal new_vm, @vm.vm
|
60
|
+
end
|
38
61
|
end
|
39
62
|
|
40
63
|
context "packaging" do
|
data/vagrant.gemspec
CHANGED
@@ -5,14 +5,14 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{vagrantup}
|
8
|
-
s.version = "0.
|
8
|
+
s.version = "0.2.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Mitchell Hashimoto", "John Bender"]
|
12
|
-
s.date = %q{2010-03-
|
12
|
+
s.date = %q{2010-03-16}
|
13
13
|
s.description = %q{Vagrant is a tool for building and distributing virtualized development environments.}
|
14
14
|
s.email = ["mitchell.hashimoto@gmail.com", "john.m.bender@gmail.com"]
|
15
|
-
s.executables = ["vagrant", "vagrant-box", "vagrant-down", "vagrant-halt", "vagrant-init", "vagrant-package", "vagrant-reload", "vagrant-resume", "vagrant-ssh", "vagrant-suspend", "vagrant-up"]
|
15
|
+
s.executables = ["vagrant", "vagrant-box", "vagrant-down", "vagrant-halt", "vagrant-init", "vagrant-package", "vagrant-reload", "vagrant-resume", "vagrant-ssh", "vagrant-status", "vagrant-suspend", "vagrant-up"]
|
16
16
|
s.extra_rdoc_files = [
|
17
17
|
"LICENSE",
|
18
18
|
"README.md"
|
@@ -34,17 +34,23 @@ Gem::Specification.new do |s|
|
|
34
34
|
"bin/vagrant-reload",
|
35
35
|
"bin/vagrant-resume",
|
36
36
|
"bin/vagrant-ssh",
|
37
|
+
"bin/vagrant-status",
|
37
38
|
"bin/vagrant-suspend",
|
38
39
|
"bin/vagrant-up",
|
39
40
|
"config/default.rb",
|
41
|
+
"keys/README.md",
|
42
|
+
"keys/vagrant",
|
43
|
+
"keys/vagrant.pub",
|
40
44
|
"lib/vagrant.rb",
|
41
45
|
"lib/vagrant/actions/base.rb",
|
42
46
|
"lib/vagrant/actions/box/add.rb",
|
43
47
|
"lib/vagrant/actions/box/destroy.rb",
|
44
48
|
"lib/vagrant/actions/box/download.rb",
|
45
49
|
"lib/vagrant/actions/box/unpackage.rb",
|
50
|
+
"lib/vagrant/actions/collection.rb",
|
46
51
|
"lib/vagrant/actions/runner.rb",
|
47
52
|
"lib/vagrant/actions/vm/boot.rb",
|
53
|
+
"lib/vagrant/actions/vm/customize.rb",
|
48
54
|
"lib/vagrant/actions/vm/destroy.rb",
|
49
55
|
"lib/vagrant/actions/vm/down.rb",
|
50
56
|
"lib/vagrant/actions/vm/export.rb",
|
@@ -60,6 +66,7 @@ Gem::Specification.new do |s|
|
|
60
66
|
"lib/vagrant/actions/vm/start.rb",
|
61
67
|
"lib/vagrant/actions/vm/suspend.rb",
|
62
68
|
"lib/vagrant/actions/vm/up.rb",
|
69
|
+
"lib/vagrant/active_list.rb",
|
63
70
|
"lib/vagrant/box.rb",
|
64
71
|
"lib/vagrant/busy.rb",
|
65
72
|
"lib/vagrant/commands.rb",
|
@@ -68,10 +75,14 @@ Gem::Specification.new do |s|
|
|
68
75
|
"lib/vagrant/downloaders/file.rb",
|
69
76
|
"lib/vagrant/downloaders/http.rb",
|
70
77
|
"lib/vagrant/env.rb",
|
78
|
+
"lib/vagrant/provisioners/base.rb",
|
79
|
+
"lib/vagrant/provisioners/chef.rb",
|
80
|
+
"lib/vagrant/provisioners/chef_server.rb",
|
81
|
+
"lib/vagrant/provisioners/chef_solo.rb",
|
71
82
|
"lib/vagrant/ssh.rb",
|
83
|
+
"lib/vagrant/stacked_proc_runner.rb",
|
72
84
|
"lib/vagrant/util.rb",
|
73
85
|
"lib/vagrant/vm.rb",
|
74
|
-
"script/vagrant-ssh-expect.sh",
|
75
86
|
"templates/Vagrantfile",
|
76
87
|
"test/test_helper.rb",
|
77
88
|
"test/vagrant/actions/base_test.rb",
|
@@ -79,8 +90,10 @@ Gem::Specification.new do |s|
|
|
79
90
|
"test/vagrant/actions/box/destroy_test.rb",
|
80
91
|
"test/vagrant/actions/box/download_test.rb",
|
81
92
|
"test/vagrant/actions/box/unpackage_test.rb",
|
93
|
+
"test/vagrant/actions/collection_test.rb",
|
82
94
|
"test/vagrant/actions/runner_test.rb",
|
83
95
|
"test/vagrant/actions/vm/boot_test.rb",
|
96
|
+
"test/vagrant/actions/vm/customize_test.rb",
|
84
97
|
"test/vagrant/actions/vm/destroy_test.rb",
|
85
98
|
"test/vagrant/actions/vm/down_test.rb",
|
86
99
|
"test/vagrant/actions/vm/export_test.rb",
|
@@ -96,6 +109,7 @@ Gem::Specification.new do |s|
|
|
96
109
|
"test/vagrant/actions/vm/start_test.rb",
|
97
110
|
"test/vagrant/actions/vm/suspend_test.rb",
|
98
111
|
"test/vagrant/actions/vm/up_test.rb",
|
112
|
+
"test/vagrant/active_list_test.rb",
|
99
113
|
"test/vagrant/box_test.rb",
|
100
114
|
"test/vagrant/busy_test.rb",
|
101
115
|
"test/vagrant/commands_test.rb",
|
@@ -104,7 +118,12 @@ Gem::Specification.new do |s|
|
|
104
118
|
"test/vagrant/downloaders/file_test.rb",
|
105
119
|
"test/vagrant/downloaders/http_test.rb",
|
106
120
|
"test/vagrant/env_test.rb",
|
121
|
+
"test/vagrant/provisioners/base_test.rb",
|
122
|
+
"test/vagrant/provisioners/chef_server_test.rb",
|
123
|
+
"test/vagrant/provisioners/chef_solo_test.rb",
|
124
|
+
"test/vagrant/provisioners/chef_test.rb",
|
107
125
|
"test/vagrant/ssh_test.rb",
|
126
|
+
"test/vagrant/stacked_proc_runner_test.rb",
|
108
127
|
"test/vagrant/util_test.rb",
|
109
128
|
"test/vagrant/vm_test.rb",
|
110
129
|
"vagrant.gemspec"
|
@@ -121,8 +140,10 @@ Gem::Specification.new do |s|
|
|
121
140
|
"test/vagrant/actions/box/destroy_test.rb",
|
122
141
|
"test/vagrant/actions/box/download_test.rb",
|
123
142
|
"test/vagrant/actions/box/unpackage_test.rb",
|
143
|
+
"test/vagrant/actions/collection_test.rb",
|
124
144
|
"test/vagrant/actions/runner_test.rb",
|
125
145
|
"test/vagrant/actions/vm/boot_test.rb",
|
146
|
+
"test/vagrant/actions/vm/customize_test.rb",
|
126
147
|
"test/vagrant/actions/vm/destroy_test.rb",
|
127
148
|
"test/vagrant/actions/vm/down_test.rb",
|
128
149
|
"test/vagrant/actions/vm/export_test.rb",
|
@@ -138,6 +159,7 @@ Gem::Specification.new do |s|
|
|
138
159
|
"test/vagrant/actions/vm/start_test.rb",
|
139
160
|
"test/vagrant/actions/vm/suspend_test.rb",
|
140
161
|
"test/vagrant/actions/vm/up_test.rb",
|
162
|
+
"test/vagrant/active_list_test.rb",
|
141
163
|
"test/vagrant/box_test.rb",
|
142
164
|
"test/vagrant/busy_test.rb",
|
143
165
|
"test/vagrant/commands_test.rb",
|
@@ -146,7 +168,12 @@ Gem::Specification.new do |s|
|
|
146
168
|
"test/vagrant/downloaders/file_test.rb",
|
147
169
|
"test/vagrant/downloaders/http_test.rb",
|
148
170
|
"test/vagrant/env_test.rb",
|
171
|
+
"test/vagrant/provisioners/base_test.rb",
|
172
|
+
"test/vagrant/provisioners/chef_server_test.rb",
|
173
|
+
"test/vagrant/provisioners/chef_solo_test.rb",
|
174
|
+
"test/vagrant/provisioners/chef_test.rb",
|
149
175
|
"test/vagrant/ssh_test.rb",
|
176
|
+
"test/vagrant/stacked_proc_runner_test.rb",
|
150
177
|
"test/vagrant/util_test.rb",
|
151
178
|
"test/vagrant/vm_test.rb"
|
152
179
|
]
|
@@ -156,14 +183,14 @@ Gem::Specification.new do |s|
|
|
156
183
|
s.specification_version = 3
|
157
184
|
|
158
185
|
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
159
|
-
s.add_runtime_dependency(%q<virtualbox>, [">= 0.5.
|
186
|
+
s.add_runtime_dependency(%q<virtualbox>, [">= 0.5.3"])
|
160
187
|
s.add_runtime_dependency(%q<net-ssh>, [">= 2.0.19"])
|
161
188
|
s.add_runtime_dependency(%q<net-scp>, [">= 1.0.2"])
|
162
189
|
s.add_runtime_dependency(%q<json>, [">= 1.2.0"])
|
163
190
|
s.add_runtime_dependency(%q<git-style-binaries>, [">= 0.1.10"])
|
164
191
|
s.add_runtime_dependency(%q<archive-tar-minitar>, ["= 0.5.2"])
|
165
192
|
else
|
166
|
-
s.add_dependency(%q<virtualbox>, [">= 0.5.
|
193
|
+
s.add_dependency(%q<virtualbox>, [">= 0.5.3"])
|
167
194
|
s.add_dependency(%q<net-ssh>, [">= 2.0.19"])
|
168
195
|
s.add_dependency(%q<net-scp>, [">= 1.0.2"])
|
169
196
|
s.add_dependency(%q<json>, [">= 1.2.0"])
|
@@ -171,7 +198,7 @@ Gem::Specification.new do |s|
|
|
171
198
|
s.add_dependency(%q<archive-tar-minitar>, ["= 0.5.2"])
|
172
199
|
end
|
173
200
|
else
|
174
|
-
s.add_dependency(%q<virtualbox>, [">= 0.5.
|
201
|
+
s.add_dependency(%q<virtualbox>, [">= 0.5.3"])
|
175
202
|
s.add_dependency(%q<net-ssh>, [">= 2.0.19"])
|
176
203
|
s.add_dependency(%q<net-scp>, [">= 1.0.2"])
|
177
204
|
s.add_dependency(%q<json>, [">= 1.2.0"])
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrantup
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mitchell Hashimoto
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2010-03-
|
12
|
+
date: 2010-03-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: virtualbox
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - '>='
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 0.5.
|
20
|
+
version: 0.5.3
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - '>='
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 0.5.
|
27
|
+
version: 0.5.3
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: net-ssh
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -110,6 +110,7 @@ executables:
|
|
110
110
|
- vagrant-reload
|
111
111
|
- vagrant-resume
|
112
112
|
- vagrant-ssh
|
113
|
+
- vagrant-status
|
113
114
|
- vagrant-suspend
|
114
115
|
- vagrant-up
|
115
116
|
extensions: []
|
@@ -133,17 +134,23 @@ files:
|
|
133
134
|
- bin/vagrant-reload
|
134
135
|
- bin/vagrant-resume
|
135
136
|
- bin/vagrant-ssh
|
137
|
+
- bin/vagrant-status
|
136
138
|
- bin/vagrant-suspend
|
137
139
|
- bin/vagrant-up
|
138
140
|
- config/default.rb
|
141
|
+
- keys/README.md
|
142
|
+
- keys/vagrant
|
143
|
+
- keys/vagrant.pub
|
139
144
|
- lib/vagrant.rb
|
140
145
|
- lib/vagrant/actions/base.rb
|
141
146
|
- lib/vagrant/actions/box/add.rb
|
142
147
|
- lib/vagrant/actions/box/destroy.rb
|
143
148
|
- lib/vagrant/actions/box/download.rb
|
144
149
|
- lib/vagrant/actions/box/unpackage.rb
|
150
|
+
- lib/vagrant/actions/collection.rb
|
145
151
|
- lib/vagrant/actions/runner.rb
|
146
152
|
- lib/vagrant/actions/vm/boot.rb
|
153
|
+
- lib/vagrant/actions/vm/customize.rb
|
147
154
|
- lib/vagrant/actions/vm/destroy.rb
|
148
155
|
- lib/vagrant/actions/vm/down.rb
|
149
156
|
- lib/vagrant/actions/vm/export.rb
|
@@ -159,6 +166,7 @@ files:
|
|
159
166
|
- lib/vagrant/actions/vm/start.rb
|
160
167
|
- lib/vagrant/actions/vm/suspend.rb
|
161
168
|
- lib/vagrant/actions/vm/up.rb
|
169
|
+
- lib/vagrant/active_list.rb
|
162
170
|
- lib/vagrant/box.rb
|
163
171
|
- lib/vagrant/busy.rb
|
164
172
|
- lib/vagrant/commands.rb
|
@@ -167,10 +175,14 @@ files:
|
|
167
175
|
- lib/vagrant/downloaders/file.rb
|
168
176
|
- lib/vagrant/downloaders/http.rb
|
169
177
|
- lib/vagrant/env.rb
|
178
|
+
- lib/vagrant/provisioners/base.rb
|
179
|
+
- lib/vagrant/provisioners/chef.rb
|
180
|
+
- lib/vagrant/provisioners/chef_server.rb
|
181
|
+
- lib/vagrant/provisioners/chef_solo.rb
|
170
182
|
- lib/vagrant/ssh.rb
|
183
|
+
- lib/vagrant/stacked_proc_runner.rb
|
171
184
|
- lib/vagrant/util.rb
|
172
185
|
- lib/vagrant/vm.rb
|
173
|
-
- script/vagrant-ssh-expect.sh
|
174
186
|
- templates/Vagrantfile
|
175
187
|
- test/test_helper.rb
|
176
188
|
- test/vagrant/actions/base_test.rb
|
@@ -178,8 +190,10 @@ files:
|
|
178
190
|
- test/vagrant/actions/box/destroy_test.rb
|
179
191
|
- test/vagrant/actions/box/download_test.rb
|
180
192
|
- test/vagrant/actions/box/unpackage_test.rb
|
193
|
+
- test/vagrant/actions/collection_test.rb
|
181
194
|
- test/vagrant/actions/runner_test.rb
|
182
195
|
- test/vagrant/actions/vm/boot_test.rb
|
196
|
+
- test/vagrant/actions/vm/customize_test.rb
|
183
197
|
- test/vagrant/actions/vm/destroy_test.rb
|
184
198
|
- test/vagrant/actions/vm/down_test.rb
|
185
199
|
- test/vagrant/actions/vm/export_test.rb
|
@@ -195,6 +209,7 @@ files:
|
|
195
209
|
- test/vagrant/actions/vm/start_test.rb
|
196
210
|
- test/vagrant/actions/vm/suspend_test.rb
|
197
211
|
- test/vagrant/actions/vm/up_test.rb
|
212
|
+
- test/vagrant/active_list_test.rb
|
198
213
|
- test/vagrant/box_test.rb
|
199
214
|
- test/vagrant/busy_test.rb
|
200
215
|
- test/vagrant/commands_test.rb
|
@@ -203,7 +218,12 @@ files:
|
|
203
218
|
- test/vagrant/downloaders/file_test.rb
|
204
219
|
- test/vagrant/downloaders/http_test.rb
|
205
220
|
- test/vagrant/env_test.rb
|
221
|
+
- test/vagrant/provisioners/base_test.rb
|
222
|
+
- test/vagrant/provisioners/chef_server_test.rb
|
223
|
+
- test/vagrant/provisioners/chef_solo_test.rb
|
224
|
+
- test/vagrant/provisioners/chef_test.rb
|
206
225
|
- test/vagrant/ssh_test.rb
|
226
|
+
- test/vagrant/stacked_proc_runner_test.rb
|
207
227
|
- test/vagrant/util_test.rb
|
208
228
|
- test/vagrant/vm_test.rb
|
209
229
|
- vagrant.gemspec
|
@@ -238,8 +258,10 @@ test_files:
|
|
238
258
|
- test/vagrant/actions/box/destroy_test.rb
|
239
259
|
- test/vagrant/actions/box/download_test.rb
|
240
260
|
- test/vagrant/actions/box/unpackage_test.rb
|
261
|
+
- test/vagrant/actions/collection_test.rb
|
241
262
|
- test/vagrant/actions/runner_test.rb
|
242
263
|
- test/vagrant/actions/vm/boot_test.rb
|
264
|
+
- test/vagrant/actions/vm/customize_test.rb
|
243
265
|
- test/vagrant/actions/vm/destroy_test.rb
|
244
266
|
- test/vagrant/actions/vm/down_test.rb
|
245
267
|
- test/vagrant/actions/vm/export_test.rb
|
@@ -255,6 +277,7 @@ test_files:
|
|
255
277
|
- test/vagrant/actions/vm/start_test.rb
|
256
278
|
- test/vagrant/actions/vm/suspend_test.rb
|
257
279
|
- test/vagrant/actions/vm/up_test.rb
|
280
|
+
- test/vagrant/active_list_test.rb
|
258
281
|
- test/vagrant/box_test.rb
|
259
282
|
- test/vagrant/busy_test.rb
|
260
283
|
- test/vagrant/commands_test.rb
|
@@ -263,7 +286,12 @@ test_files:
|
|
263
286
|
- test/vagrant/downloaders/file_test.rb
|
264
287
|
- test/vagrant/downloaders/http_test.rb
|
265
288
|
- test/vagrant/env_test.rb
|
289
|
+
- test/vagrant/provisioners/base_test.rb
|
290
|
+
- test/vagrant/provisioners/chef_server_test.rb
|
291
|
+
- test/vagrant/provisioners/chef_solo_test.rb
|
292
|
+
- test/vagrant/provisioners/chef_test.rb
|
266
293
|
- test/vagrant/ssh_test.rb
|
294
|
+
- test/vagrant/stacked_proc_runner_test.rb
|
267
295
|
- test/vagrant/util_test.rb
|
268
296
|
- test/vagrant/vm_test.rb
|
269
297
|
has_rdoc:
|
@@ -1,22 +0,0 @@
|
|
1
|
-
#!/usr/bin/expect
|
2
|
-
|
3
|
-
set uname [lrange $argv 0 0]
|
4
|
-
set password [lrange $argv 1 1]
|
5
|
-
set host [lrange $argv 2 2]
|
6
|
-
set port [lrange $argv 3 3]
|
7
|
-
|
8
|
-
if { $port != "" } {
|
9
|
-
set port_option "-p $port"
|
10
|
-
} else {
|
11
|
-
set port_option ""
|
12
|
-
}
|
13
|
-
|
14
|
-
spawn ssh $port_option -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no $uname@$host
|
15
|
-
|
16
|
-
expect "*password: " {
|
17
|
-
send "$password\r"
|
18
|
-
} timeout {
|
19
|
-
send_user "Error connecting"
|
20
|
-
}
|
21
|
-
|
22
|
-
interact
|