vagrant 0.1.4 → 0.2.0.pre

Sign up to get free protection for your applications and to get access to all the features.
Files changed (69) hide show
  1. data/Gemfile +1 -1
  2. data/Rakefile +1 -1
  3. data/VERSION +1 -1
  4. data/bin/vagrant-box +1 -2
  5. data/bin/vagrant-down +1 -2
  6. data/bin/vagrant-halt +1 -2
  7. data/bin/vagrant-init +1 -2
  8. data/bin/vagrant-package +1 -2
  9. data/bin/vagrant-reload +1 -2
  10. data/bin/vagrant-resume +1 -2
  11. data/bin/vagrant-ssh +1 -2
  12. data/bin/vagrant-status +29 -0
  13. data/bin/vagrant-suspend +1 -2
  14. data/bin/vagrant-up +1 -2
  15. data/config/default.rb +5 -9
  16. data/keys/README.md +10 -0
  17. data/keys/vagrant +27 -0
  18. data/keys/vagrant.pub +1 -0
  19. data/lib/vagrant/actions/base.rb +14 -0
  20. data/lib/vagrant/actions/collection.rb +36 -0
  21. data/lib/vagrant/actions/runner.rb +4 -10
  22. data/lib/vagrant/actions/vm/boot.rb +4 -5
  23. data/lib/vagrant/actions/vm/customize.rb +17 -0
  24. data/lib/vagrant/actions/vm/destroy.rb +11 -2
  25. data/lib/vagrant/actions/vm/forward_ports.rb +24 -0
  26. data/lib/vagrant/actions/vm/import.rb +1 -0
  27. data/lib/vagrant/actions/vm/provision.rb +30 -52
  28. data/lib/vagrant/actions/vm/reload.rb +2 -2
  29. data/lib/vagrant/actions/vm/shared_folders.rb +37 -25
  30. data/lib/vagrant/actions/vm/up.rb +8 -4
  31. data/lib/vagrant/active_list.rb +66 -0
  32. data/lib/vagrant/commands.rb +44 -0
  33. data/lib/vagrant/config.rb +64 -47
  34. data/lib/vagrant/downloaders/file.rb +2 -12
  35. data/lib/vagrant/env.rb +48 -12
  36. data/lib/vagrant/provisioners/base.rb +22 -0
  37. data/lib/vagrant/provisioners/chef.rb +102 -0
  38. data/lib/vagrant/provisioners/chef_server.rb +96 -0
  39. data/lib/vagrant/provisioners/chef_solo.rb +67 -0
  40. data/lib/vagrant/ssh.rb +25 -6
  41. data/lib/vagrant/stacked_proc_runner.rb +33 -0
  42. data/lib/vagrant/vm.rb +8 -0
  43. data/lib/vagrant.rb +10 -5
  44. data/test/test_helper.rb +22 -6
  45. data/test/vagrant/actions/collection_test.rb +110 -0
  46. data/test/vagrant/actions/runner_test.rb +11 -7
  47. data/test/vagrant/actions/vm/boot_test.rb +7 -7
  48. data/test/vagrant/actions/vm/customize_test.rb +16 -0
  49. data/test/vagrant/actions/vm/destroy_test.rb +19 -6
  50. data/test/vagrant/actions/vm/forward_ports_test.rb +52 -0
  51. data/test/vagrant/actions/vm/import_test.rb +10 -3
  52. data/test/vagrant/actions/vm/provision_test.rb +75 -70
  53. data/test/vagrant/actions/vm/reload_test.rb +3 -2
  54. data/test/vagrant/actions/vm/shared_folders_test.rb +62 -9
  55. data/test/vagrant/actions/vm/up_test.rb +4 -4
  56. data/test/vagrant/active_list_test.rb +169 -0
  57. data/test/vagrant/config_test.rb +145 -29
  58. data/test/vagrant/downloaders/file_test.rb +4 -19
  59. data/test/vagrant/env_test.rb +96 -23
  60. data/test/vagrant/provisioners/base_test.rb +27 -0
  61. data/test/vagrant/provisioners/chef_server_test.rb +175 -0
  62. data/test/vagrant/provisioners/chef_solo_test.rb +142 -0
  63. data/test/vagrant/provisioners/chef_test.rb +116 -0
  64. data/test/vagrant/ssh_test.rb +29 -8
  65. data/test/vagrant/stacked_proc_runner_test.rb +43 -0
  66. data/test/vagrant/vm_test.rb +23 -0
  67. data/vagrant.gemspec +35 -8
  68. metadata +42 -11
  69. data/script/vagrant-ssh-expect.sh +0 -22
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
4
+ prerelease: true
5
5
  segments:
6
6
  - 0
7
- - 1
8
- - 4
9
- version: 0.1.4
7
+ - 2
8
+ - 0
9
+ - pre
10
+ version: 0.2.0.pre
10
11
  platform: ruby
11
12
  authors:
12
13
  - Mitchell Hashimoto
@@ -15,7 +16,7 @@ autorequire:
15
16
  bindir: bin
16
17
  cert_chain: []
17
18
 
18
- date: 2010-03-09 00:00:00 -08:00
19
+ date: 2010-03-15 00:00:00 -07:00
19
20
  default_executable:
20
21
  dependencies:
21
22
  - !ruby/object:Gem::Dependency
@@ -28,8 +29,8 @@ dependencies:
28
29
  segments:
29
30
  - 0
30
31
  - 5
31
- - 0
32
- version: 0.5.0
32
+ - 2
33
+ version: 0.5.2
33
34
  type: :runtime
34
35
  version_requirements: *id001
35
36
  - !ruby/object:Gem::Dependency
@@ -116,6 +117,7 @@ executables:
116
117
  - vagrant-reload
117
118
  - vagrant-resume
118
119
  - vagrant-ssh
120
+ - vagrant-status
119
121
  - vagrant-suspend
120
122
  - vagrant-up
121
123
  extensions: []
@@ -140,17 +142,23 @@ files:
140
142
  - bin/vagrant-reload
141
143
  - bin/vagrant-resume
142
144
  - bin/vagrant-ssh
145
+ - bin/vagrant-status
143
146
  - bin/vagrant-suspend
144
147
  - bin/vagrant-up
145
148
  - config/default.rb
149
+ - keys/README.md
150
+ - keys/vagrant
151
+ - keys/vagrant.pub
146
152
  - lib/vagrant.rb
147
153
  - lib/vagrant/actions/base.rb
148
154
  - lib/vagrant/actions/box/add.rb
149
155
  - lib/vagrant/actions/box/destroy.rb
150
156
  - lib/vagrant/actions/box/download.rb
151
157
  - lib/vagrant/actions/box/unpackage.rb
158
+ - lib/vagrant/actions/collection.rb
152
159
  - lib/vagrant/actions/runner.rb
153
160
  - lib/vagrant/actions/vm/boot.rb
161
+ - lib/vagrant/actions/vm/customize.rb
154
162
  - lib/vagrant/actions/vm/destroy.rb
155
163
  - lib/vagrant/actions/vm/down.rb
156
164
  - lib/vagrant/actions/vm/export.rb
@@ -166,6 +174,7 @@ files:
166
174
  - lib/vagrant/actions/vm/start.rb
167
175
  - lib/vagrant/actions/vm/suspend.rb
168
176
  - lib/vagrant/actions/vm/up.rb
177
+ - lib/vagrant/active_list.rb
169
178
  - lib/vagrant/box.rb
170
179
  - lib/vagrant/busy.rb
171
180
  - lib/vagrant/commands.rb
@@ -174,10 +183,14 @@ files:
174
183
  - lib/vagrant/downloaders/file.rb
175
184
  - lib/vagrant/downloaders/http.rb
176
185
  - lib/vagrant/env.rb
186
+ - lib/vagrant/provisioners/base.rb
187
+ - lib/vagrant/provisioners/chef.rb
188
+ - lib/vagrant/provisioners/chef_server.rb
189
+ - lib/vagrant/provisioners/chef_solo.rb
177
190
  - lib/vagrant/ssh.rb
191
+ - lib/vagrant/stacked_proc_runner.rb
178
192
  - lib/vagrant/util.rb
179
193
  - lib/vagrant/vm.rb
180
- - script/vagrant-ssh-expect.sh
181
194
  - templates/Vagrantfile
182
195
  - test/test_helper.rb
183
196
  - test/vagrant/actions/base_test.rb
@@ -185,8 +198,10 @@ files:
185
198
  - test/vagrant/actions/box/destroy_test.rb
186
199
  - test/vagrant/actions/box/download_test.rb
187
200
  - test/vagrant/actions/box/unpackage_test.rb
201
+ - test/vagrant/actions/collection_test.rb
188
202
  - test/vagrant/actions/runner_test.rb
189
203
  - test/vagrant/actions/vm/boot_test.rb
204
+ - test/vagrant/actions/vm/customize_test.rb
190
205
  - test/vagrant/actions/vm/destroy_test.rb
191
206
  - test/vagrant/actions/vm/down_test.rb
192
207
  - test/vagrant/actions/vm/export_test.rb
@@ -202,6 +217,7 @@ files:
202
217
  - test/vagrant/actions/vm/start_test.rb
203
218
  - test/vagrant/actions/vm/suspend_test.rb
204
219
  - test/vagrant/actions/vm/up_test.rb
220
+ - test/vagrant/active_list_test.rb
205
221
  - test/vagrant/box_test.rb
206
222
  - test/vagrant/busy_test.rb
207
223
  - test/vagrant/commands_test.rb
@@ -210,7 +226,12 @@ files:
210
226
  - test/vagrant/downloaders/file_test.rb
211
227
  - test/vagrant/downloaders/http_test.rb
212
228
  - test/vagrant/env_test.rb
229
+ - test/vagrant/provisioners/base_test.rb
230
+ - test/vagrant/provisioners/chef_server_test.rb
231
+ - test/vagrant/provisioners/chef_solo_test.rb
232
+ - test/vagrant/provisioners/chef_test.rb
213
233
  - test/vagrant/ssh_test.rb
234
+ - test/vagrant/stacked_proc_runner_test.rb
214
235
  - test/vagrant/util_test.rb
215
236
  - test/vagrant/vm_test.rb
216
237
  - vagrant.gemspec
@@ -232,11 +253,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
232
253
  version: "0"
233
254
  required_rubygems_version: !ruby/object:Gem::Requirement
234
255
  requirements:
235
- - - ">="
256
+ - - ">"
236
257
  - !ruby/object:Gem::Version
237
258
  segments:
238
- - 0
239
- version: "0"
259
+ - 1
260
+ - 3
261
+ - 1
262
+ version: 1.3.1
240
263
  requirements: []
241
264
 
242
265
  rubyforge_project:
@@ -251,8 +274,10 @@ test_files:
251
274
  - test/vagrant/actions/box/destroy_test.rb
252
275
  - test/vagrant/actions/box/download_test.rb
253
276
  - test/vagrant/actions/box/unpackage_test.rb
277
+ - test/vagrant/actions/collection_test.rb
254
278
  - test/vagrant/actions/runner_test.rb
255
279
  - test/vagrant/actions/vm/boot_test.rb
280
+ - test/vagrant/actions/vm/customize_test.rb
256
281
  - test/vagrant/actions/vm/destroy_test.rb
257
282
  - test/vagrant/actions/vm/down_test.rb
258
283
  - test/vagrant/actions/vm/export_test.rb
@@ -268,6 +293,7 @@ test_files:
268
293
  - test/vagrant/actions/vm/start_test.rb
269
294
  - test/vagrant/actions/vm/suspend_test.rb
270
295
  - test/vagrant/actions/vm/up_test.rb
296
+ - test/vagrant/active_list_test.rb
271
297
  - test/vagrant/box_test.rb
272
298
  - test/vagrant/busy_test.rb
273
299
  - test/vagrant/commands_test.rb
@@ -276,6 +302,11 @@ test_files:
276
302
  - test/vagrant/downloaders/file_test.rb
277
303
  - test/vagrant/downloaders/http_test.rb
278
304
  - test/vagrant/env_test.rb
305
+ - test/vagrant/provisioners/base_test.rb
306
+ - test/vagrant/provisioners/chef_server_test.rb
307
+ - test/vagrant/provisioners/chef_solo_test.rb
308
+ - test/vagrant/provisioners/chef_test.rb
279
309
  - test/vagrant/ssh_test.rb
310
+ - test/vagrant/stacked_proc_runner_test.rb
280
311
  - test/vagrant/util_test.rb
281
312
  - test/vagrant/vm_test.rb
@@ -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