vagrantup 0.3.4 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (125) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +2 -2
  3. data/README.md +2 -2
  4. data/Rakefile +1 -1
  5. data/VERSION +1 -1
  6. data/config/default.rb +13 -3
  7. data/lib/vagrant.rb +10 -13
  8. data/lib/vagrant/actions/base.rb +14 -2
  9. data/lib/vagrant/actions/box/download.rb +2 -7
  10. data/lib/vagrant/actions/box/verify.rb +1 -1
  11. data/lib/vagrant/actions/runner.rb +0 -1
  12. data/lib/vagrant/actions/vm/boot.rb +2 -6
  13. data/lib/vagrant/actions/vm/customize.rb +7 -5
  14. data/lib/vagrant/actions/vm/destroy.rb +4 -3
  15. data/lib/vagrant/actions/vm/down.rb +6 -3
  16. data/lib/vagrant/actions/vm/export.rb +2 -4
  17. data/lib/vagrant/actions/vm/forward_ports.rb +77 -16
  18. data/lib/vagrant/actions/vm/halt.rb +10 -2
  19. data/lib/vagrant/actions/vm/import.rb +2 -4
  20. data/lib/vagrant/actions/vm/move_hard_drive.rb +2 -2
  21. data/lib/vagrant/actions/vm/network.rb +120 -0
  22. data/lib/vagrant/actions/vm/package.rb +11 -7
  23. data/lib/vagrant/actions/vm/provision.rb +3 -3
  24. data/lib/vagrant/actions/vm/reload.rb +2 -9
  25. data/lib/vagrant/actions/vm/shared_folders.rb +19 -39
  26. data/lib/vagrant/actions/vm/start.rb +10 -2
  27. data/lib/vagrant/actions/vm/up.rb +5 -6
  28. data/lib/vagrant/active_list.rb +23 -13
  29. data/lib/vagrant/box.rb +2 -2
  30. data/lib/vagrant/busy.rb +3 -3
  31. data/lib/vagrant/command.rb +2 -2
  32. data/lib/vagrant/commands/base.rb +40 -20
  33. data/lib/vagrant/commands/destroy.rb +17 -3
  34. data/lib/vagrant/commands/halt.rb +23 -3
  35. data/lib/vagrant/commands/package.rb +54 -14
  36. data/lib/vagrant/commands/provision.rb +31 -0
  37. data/lib/vagrant/commands/reload.rb +16 -3
  38. data/lib/vagrant/commands/resume.rb +16 -3
  39. data/lib/vagrant/commands/ssh.rb +25 -3
  40. data/lib/vagrant/commands/ssh_config.rb +20 -5
  41. data/lib/vagrant/commands/status.rb +107 -40
  42. data/lib/vagrant/commands/suspend.rb +16 -3
  43. data/lib/vagrant/commands/up.rb +26 -7
  44. data/lib/vagrant/config.rb +82 -12
  45. data/lib/vagrant/downloaders/base.rb +8 -1
  46. data/lib/vagrant/downloaders/http.rb +31 -19
  47. data/lib/vagrant/environment.rb +146 -49
  48. data/lib/vagrant/provisioners/base.rb +19 -5
  49. data/lib/vagrant/provisioners/chef.rb +12 -4
  50. data/lib/vagrant/provisioners/chef_server.rb +13 -6
  51. data/lib/vagrant/provisioners/chef_solo.rb +7 -3
  52. data/lib/vagrant/resource_logger.rb +126 -0
  53. data/lib/vagrant/ssh.rb +109 -8
  54. data/lib/vagrant/systems/base.rb +70 -0
  55. data/lib/vagrant/systems/linux.rb +137 -0
  56. data/lib/vagrant/util.rb +1 -45
  57. data/lib/vagrant/util/error_helper.rb +13 -0
  58. data/lib/vagrant/util/glob_loader.rb +22 -0
  59. data/lib/vagrant/util/output_helper.rb +9 -0
  60. data/lib/vagrant/util/plain_logger.rb +12 -0
  61. data/lib/vagrant/util/platform.rb +7 -2
  62. data/lib/vagrant/util/template_renderer.rb +2 -2
  63. data/lib/vagrant/util/translator.rb +35 -0
  64. data/lib/vagrant/vm.rb +91 -10
  65. data/templates/crontab_entry.erb +1 -0
  66. data/templates/network_entry.erb +8 -0
  67. data/templates/ssh_config.erb +1 -0
  68. data/templates/{errors.yml → strings.yml} +111 -3
  69. data/templates/sync.erb +14 -0
  70. data/test/test_helper.rb +46 -3
  71. data/test/vagrant/actions/box/download_test.rb +0 -17
  72. data/test/vagrant/actions/vm/boot_test.rb +3 -10
  73. data/test/vagrant/actions/vm/customize_test.rb +6 -0
  74. data/test/vagrant/actions/vm/destroy_test.rb +6 -5
  75. data/test/vagrant/actions/vm/down_test.rb +5 -11
  76. data/test/vagrant/actions/vm/export_test.rb +1 -0
  77. data/test/vagrant/actions/vm/forward_ports_test.rb +92 -15
  78. data/test/vagrant/actions/vm/halt_test.rb +36 -4
  79. data/test/vagrant/actions/vm/import_test.rb +2 -0
  80. data/test/vagrant/actions/vm/network_test.rb +237 -0
  81. data/test/vagrant/actions/vm/package_test.rb +35 -5
  82. data/test/vagrant/actions/vm/provision_test.rb +3 -3
  83. data/test/vagrant/actions/vm/reload_test.rb +1 -1
  84. data/test/vagrant/actions/vm/shared_folders_test.rb +41 -74
  85. data/test/vagrant/actions/vm/start_test.rb +41 -3
  86. data/test/vagrant/actions/vm/up_test.rb +10 -21
  87. data/test/vagrant/active_list_test.rb +28 -43
  88. data/test/vagrant/commands/base_test.rb +25 -4
  89. data/test/vagrant/commands/destroy_test.rb +24 -12
  90. data/test/vagrant/commands/halt_test.rb +33 -11
  91. data/test/vagrant/commands/package_test.rb +77 -57
  92. data/test/vagrant/commands/provision_test.rb +50 -0
  93. data/test/vagrant/commands/reload_test.rb +27 -11
  94. data/test/vagrant/commands/resume_test.rb +25 -14
  95. data/test/vagrant/commands/ssh_config_test.rb +40 -17
  96. data/test/vagrant/commands/ssh_test.rb +52 -13
  97. data/test/vagrant/commands/status_test.rb +21 -1
  98. data/test/vagrant/commands/suspend_test.rb +25 -14
  99. data/test/vagrant/commands/up_test.rb +25 -19
  100. data/test/vagrant/config_test.rb +74 -18
  101. data/test/vagrant/downloaders/base_test.rb +2 -1
  102. data/test/vagrant/downloaders/http_test.rb +18 -8
  103. data/test/vagrant/environment_test.rb +245 -77
  104. data/test/vagrant/provisioners/base_test.rb +4 -4
  105. data/test/vagrant/provisioners/chef_server_test.rb +18 -7
  106. data/test/vagrant/provisioners/chef_solo_test.rb +17 -7
  107. data/test/vagrant/provisioners/chef_test.rb +22 -9
  108. data/test/vagrant/resource_logger_test.rb +144 -0
  109. data/test/vagrant/ssh_session_test.rb +46 -0
  110. data/test/vagrant/ssh_test.rb +42 -2
  111. data/test/vagrant/systems/linux_test.rb +174 -0
  112. data/test/vagrant/util/error_helper_test.rb +5 -0
  113. data/test/vagrant/util/output_helper_test.rb +5 -0
  114. data/test/vagrant/util/plain_logger_test.rb +17 -0
  115. data/test/vagrant/util/platform_test.rb +18 -0
  116. data/test/vagrant/util/{errors_test.rb → translator_test.rb} +25 -21
  117. data/test/vagrant/util_test.rb +12 -49
  118. data/test/vagrant/vm_test.rb +133 -11
  119. data/vagrant.gemspec +39 -15
  120. metadata +38 -14
  121. data/lib/vagrant/commands/down.rb +0 -16
  122. data/lib/vagrant/util/errors.rb +0 -36
  123. data/lib/vagrant/util/progress_meter.rb +0 -33
  124. data/test/vagrant/commands/down_test.rb +0 -17
  125. data/test/vagrant/util/progress_meter_test.rb +0 -33
data/vagrant.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{vagrantup}
8
- s.version = "0.3.4"
8
+ s.version = "0.4.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-05-21}
12
+ s.date = %q{2010-06-10}
13
13
  s.default_executable = %q{vagrant}
14
14
  s.description = %q{Vagrant is a tool for building and distributing virtualized development environments.}
15
15
  s.email = ["mitchell.hashimoto@gmail.com", "john.m.bender@gmail.com"]
@@ -50,6 +50,7 @@ Gem::Specification.new do |s|
50
50
  "lib/vagrant/actions/vm/halt.rb",
51
51
  "lib/vagrant/actions/vm/import.rb",
52
52
  "lib/vagrant/actions/vm/move_hard_drive.rb",
53
+ "lib/vagrant/actions/vm/network.rb",
53
54
  "lib/vagrant/actions/vm/package.rb",
54
55
  "lib/vagrant/actions/vm/provision.rb",
55
56
  "lib/vagrant/actions/vm/reload.rb",
@@ -68,10 +69,10 @@ Gem::Specification.new do |s|
68
69
  "lib/vagrant/commands/box/list.rb",
69
70
  "lib/vagrant/commands/box/remove.rb",
70
71
  "lib/vagrant/commands/destroy.rb",
71
- "lib/vagrant/commands/down.rb",
72
72
  "lib/vagrant/commands/halt.rb",
73
73
  "lib/vagrant/commands/init.rb",
74
74
  "lib/vagrant/commands/package.rb",
75
+ "lib/vagrant/commands/provision.rb",
75
76
  "lib/vagrant/commands/reload.rb",
76
77
  "lib/vagrant/commands/resume.rb",
77
78
  "lib/vagrant/commands/ssh.rb",
@@ -88,20 +89,29 @@ Gem::Specification.new do |s|
88
89
  "lib/vagrant/provisioners/chef.rb",
89
90
  "lib/vagrant/provisioners/chef_server.rb",
90
91
  "lib/vagrant/provisioners/chef_solo.rb",
92
+ "lib/vagrant/resource_logger.rb",
91
93
  "lib/vagrant/ssh.rb",
94
+ "lib/vagrant/systems/base.rb",
95
+ "lib/vagrant/systems/linux.rb",
92
96
  "lib/vagrant/util.rb",
93
- "lib/vagrant/util/errors.rb",
97
+ "lib/vagrant/util/error_helper.rb",
98
+ "lib/vagrant/util/glob_loader.rb",
99
+ "lib/vagrant/util/output_helper.rb",
100
+ "lib/vagrant/util/plain_logger.rb",
94
101
  "lib/vagrant/util/platform.rb",
95
- "lib/vagrant/util/progress_meter.rb",
96
102
  "lib/vagrant/util/stacked_proc_runner.rb",
97
103
  "lib/vagrant/util/template_renderer.rb",
104
+ "lib/vagrant/util/translator.rb",
98
105
  "lib/vagrant/vm.rb",
99
106
  "templates/Vagrantfile.erb",
100
107
  "templates/chef_server_client.erb",
101
108
  "templates/chef_solo_solo.erb",
102
- "templates/errors.yml",
109
+ "templates/crontab_entry.erb",
110
+ "templates/network_entry.erb",
103
111
  "templates/package_Vagrantfile.erb",
104
112
  "templates/ssh_config.erb",
113
+ "templates/strings.yml",
114
+ "templates/sync.erb",
105
115
  "test/test_helper.rb",
106
116
  "test/vagrant/actions/base_test.rb",
107
117
  "test/vagrant/actions/box/add_test.rb",
@@ -120,6 +130,7 @@ Gem::Specification.new do |s|
120
130
  "test/vagrant/actions/vm/halt_test.rb",
121
131
  "test/vagrant/actions/vm/import_test.rb",
122
132
  "test/vagrant/actions/vm/move_hard_drive_test.rb",
133
+ "test/vagrant/actions/vm/network_test.rb",
123
134
  "test/vagrant/actions/vm/package_test.rb",
124
135
  "test/vagrant/actions/vm/provision_test.rb",
125
136
  "test/vagrant/actions/vm/reload_test.rb",
@@ -137,10 +148,10 @@ Gem::Specification.new do |s|
137
148
  "test/vagrant/commands/box/list_test.rb",
138
149
  "test/vagrant/commands/box/remove_test.rb",
139
150
  "test/vagrant/commands/destroy_test.rb",
140
- "test/vagrant/commands/down_test.rb",
141
151
  "test/vagrant/commands/halt_test.rb",
142
152
  "test/vagrant/commands/init_test.rb",
143
153
  "test/vagrant/commands/package_test.rb",
154
+ "test/vagrant/commands/provision_test.rb",
144
155
  "test/vagrant/commands/reload_test.rb",
145
156
  "test/vagrant/commands/resume_test.rb",
146
157
  "test/vagrant/commands/ssh_config_test.rb",
@@ -157,11 +168,17 @@ Gem::Specification.new do |s|
157
168
  "test/vagrant/provisioners/chef_server_test.rb",
158
169
  "test/vagrant/provisioners/chef_solo_test.rb",
159
170
  "test/vagrant/provisioners/chef_test.rb",
171
+ "test/vagrant/resource_logger_test.rb",
172
+ "test/vagrant/ssh_session_test.rb",
160
173
  "test/vagrant/ssh_test.rb",
161
- "test/vagrant/util/errors_test.rb",
162
- "test/vagrant/util/progress_meter_test.rb",
174
+ "test/vagrant/systems/linux_test.rb",
175
+ "test/vagrant/util/error_helper_test.rb",
176
+ "test/vagrant/util/output_helper_test.rb",
177
+ "test/vagrant/util/plain_logger_test.rb",
178
+ "test/vagrant/util/platform_test.rb",
163
179
  "test/vagrant/util/stacked_proc_runner_test.rb",
164
180
  "test/vagrant/util/template_renderer_test.rb",
181
+ "test/vagrant/util/translator_test.rb",
165
182
  "test/vagrant/util_test.rb",
166
183
  "test/vagrant/vm_test.rb",
167
184
  "vagrant.gemspec"
@@ -183,6 +200,7 @@ Gem::Specification.new do |s|
183
200
  "test/vagrant/provisioners/chef_test.rb",
184
201
  "test/vagrant/provisioners/chef_server_test.rb",
185
202
  "test/vagrant/provisioners/chef_solo_test.rb",
203
+ "test/vagrant/systems/linux_test.rb",
186
204
  "test/vagrant/config_test.rb",
187
205
  "test/vagrant/actions/base_test.rb",
188
206
  "test/vagrant/actions/runner_test.rb",
@@ -203,6 +221,7 @@ Gem::Specification.new do |s|
203
221
  "test/vagrant/actions/vm/import_test.rb",
204
222
  "test/vagrant/actions/vm/customize_test.rb",
205
223
  "test/vagrant/actions/vm/start_test.rb",
224
+ "test/vagrant/actions/vm/network_test.rb",
206
225
  "test/vagrant/actions/vm/move_hard_drive_test.rb",
207
226
  "test/vagrant/actions/vm/up_test.rb",
208
227
  "test/vagrant/actions/vm/export_test.rb",
@@ -216,7 +235,6 @@ Gem::Specification.new do |s|
216
235
  "test/vagrant/commands/suspend_test.rb",
217
236
  "test/vagrant/commands/package_test.rb",
218
237
  "test/vagrant/commands/status_test.rb",
219
- "test/vagrant/commands/down_test.rb",
220
238
  "test/vagrant/commands/init_test.rb",
221
239
  "test/vagrant/commands/destroy_test.rb",
222
240
  "test/vagrant/commands/halt_test.rb",
@@ -224,15 +242,21 @@ Gem::Specification.new do |s|
224
242
  "test/vagrant/commands/box/add_test.rb",
225
243
  "test/vagrant/commands/box/list_test.rb",
226
244
  "test/vagrant/commands/up_test.rb",
245
+ "test/vagrant/commands/provision_test.rb",
227
246
  "test/vagrant/commands/resume_test.rb",
228
247
  "test/vagrant/commands/ssh_test.rb",
248
+ "test/vagrant/resource_logger_test.rb",
229
249
  "test/vagrant/downloaders/base_test.rb",
230
250
  "test/vagrant/downloaders/file_test.rb",
231
251
  "test/vagrant/downloaders/http_test.rb",
232
252
  "test/vagrant/util/stacked_proc_runner_test.rb",
233
- "test/vagrant/util/progress_meter_test.rb",
253
+ "test/vagrant/util/output_helper_test.rb",
234
254
  "test/vagrant/util/template_renderer_test.rb",
235
- "test/vagrant/util/errors_test.rb",
255
+ "test/vagrant/util/translator_test.rb",
256
+ "test/vagrant/util/platform_test.rb",
257
+ "test/vagrant/util/error_helper_test.rb",
258
+ "test/vagrant/util/plain_logger_test.rb",
259
+ "test/vagrant/ssh_session_test.rb",
236
260
  "test/vagrant/ssh_test.rb"
237
261
  ]
238
262
 
@@ -241,14 +265,14 @@ Gem::Specification.new do |s|
241
265
  s.specification_version = 3
242
266
 
243
267
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
244
- s.add_runtime_dependency(%q<virtualbox>, ["~> 0.6.1"])
268
+ s.add_runtime_dependency(%q<virtualbox>, ["~> 0.7.0"])
245
269
  s.add_runtime_dependency(%q<net-ssh>, [">= 2.0.19"])
246
270
  s.add_runtime_dependency(%q<net-scp>, [">= 1.0.2"])
247
271
  s.add_runtime_dependency(%q<json>, [">= 1.2.0"])
248
272
  s.add_runtime_dependency(%q<archive-tar-minitar>, ["= 0.5.2"])
249
273
  s.add_runtime_dependency(%q<mario>, ["~> 0.0.6"])
250
274
  else
251
- s.add_dependency(%q<virtualbox>, ["~> 0.6.1"])
275
+ s.add_dependency(%q<virtualbox>, ["~> 0.7.0"])
252
276
  s.add_dependency(%q<net-ssh>, [">= 2.0.19"])
253
277
  s.add_dependency(%q<net-scp>, [">= 1.0.2"])
254
278
  s.add_dependency(%q<json>, [">= 1.2.0"])
@@ -256,7 +280,7 @@ Gem::Specification.new do |s|
256
280
  s.add_dependency(%q<mario>, ["~> 0.0.6"])
257
281
  end
258
282
  else
259
- s.add_dependency(%q<virtualbox>, ["~> 0.6.1"])
283
+ s.add_dependency(%q<virtualbox>, ["~> 0.7.0"])
260
284
  s.add_dependency(%q<net-ssh>, [">= 2.0.19"])
261
285
  s.add_dependency(%q<net-scp>, [">= 1.0.2"])
262
286
  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.3.4
4
+ version: 0.4.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-05-21 00:00:00.000000000 Z
12
+ date: 2010-06-10 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.6.1
20
+ version: 0.7.0
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.6.1
27
+ version: 0.7.0
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: net-ssh
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -138,6 +138,7 @@ files:
138
138
  - lib/vagrant/actions/vm/halt.rb
139
139
  - lib/vagrant/actions/vm/import.rb
140
140
  - lib/vagrant/actions/vm/move_hard_drive.rb
141
+ - lib/vagrant/actions/vm/network.rb
141
142
  - lib/vagrant/actions/vm/package.rb
142
143
  - lib/vagrant/actions/vm/provision.rb
143
144
  - lib/vagrant/actions/vm/reload.rb
@@ -156,10 +157,10 @@ files:
156
157
  - lib/vagrant/commands/box/list.rb
157
158
  - lib/vagrant/commands/box/remove.rb
158
159
  - lib/vagrant/commands/destroy.rb
159
- - lib/vagrant/commands/down.rb
160
160
  - lib/vagrant/commands/halt.rb
161
161
  - lib/vagrant/commands/init.rb
162
162
  - lib/vagrant/commands/package.rb
163
+ - lib/vagrant/commands/provision.rb
163
164
  - lib/vagrant/commands/reload.rb
164
165
  - lib/vagrant/commands/resume.rb
165
166
  - lib/vagrant/commands/ssh.rb
@@ -176,20 +177,29 @@ files:
176
177
  - lib/vagrant/provisioners/chef.rb
177
178
  - lib/vagrant/provisioners/chef_server.rb
178
179
  - lib/vagrant/provisioners/chef_solo.rb
180
+ - lib/vagrant/resource_logger.rb
179
181
  - lib/vagrant/ssh.rb
182
+ - lib/vagrant/systems/base.rb
183
+ - lib/vagrant/systems/linux.rb
180
184
  - lib/vagrant/util.rb
181
- - lib/vagrant/util/errors.rb
185
+ - lib/vagrant/util/error_helper.rb
186
+ - lib/vagrant/util/glob_loader.rb
187
+ - lib/vagrant/util/output_helper.rb
188
+ - lib/vagrant/util/plain_logger.rb
182
189
  - lib/vagrant/util/platform.rb
183
- - lib/vagrant/util/progress_meter.rb
184
190
  - lib/vagrant/util/stacked_proc_runner.rb
185
191
  - lib/vagrant/util/template_renderer.rb
192
+ - lib/vagrant/util/translator.rb
186
193
  - lib/vagrant/vm.rb
187
194
  - templates/Vagrantfile.erb
188
195
  - templates/chef_server_client.erb
189
196
  - templates/chef_solo_solo.erb
190
- - templates/errors.yml
197
+ - templates/crontab_entry.erb
198
+ - templates/network_entry.erb
191
199
  - templates/package_Vagrantfile.erb
192
200
  - templates/ssh_config.erb
201
+ - templates/strings.yml
202
+ - templates/sync.erb
193
203
  - test/test_helper.rb
194
204
  - test/vagrant/actions/base_test.rb
195
205
  - test/vagrant/actions/box/add_test.rb
@@ -208,6 +218,7 @@ files:
208
218
  - test/vagrant/actions/vm/halt_test.rb
209
219
  - test/vagrant/actions/vm/import_test.rb
210
220
  - test/vagrant/actions/vm/move_hard_drive_test.rb
221
+ - test/vagrant/actions/vm/network_test.rb
211
222
  - test/vagrant/actions/vm/package_test.rb
212
223
  - test/vagrant/actions/vm/provision_test.rb
213
224
  - test/vagrant/actions/vm/reload_test.rb
@@ -225,10 +236,10 @@ files:
225
236
  - test/vagrant/commands/box/list_test.rb
226
237
  - test/vagrant/commands/box/remove_test.rb
227
238
  - test/vagrant/commands/destroy_test.rb
228
- - test/vagrant/commands/down_test.rb
229
239
  - test/vagrant/commands/halt_test.rb
230
240
  - test/vagrant/commands/init_test.rb
231
241
  - test/vagrant/commands/package_test.rb
242
+ - test/vagrant/commands/provision_test.rb
232
243
  - test/vagrant/commands/reload_test.rb
233
244
  - test/vagrant/commands/resume_test.rb
234
245
  - test/vagrant/commands/ssh_config_test.rb
@@ -245,11 +256,17 @@ files:
245
256
  - test/vagrant/provisioners/chef_server_test.rb
246
257
  - test/vagrant/provisioners/chef_solo_test.rb
247
258
  - test/vagrant/provisioners/chef_test.rb
259
+ - test/vagrant/resource_logger_test.rb
260
+ - test/vagrant/ssh_session_test.rb
248
261
  - test/vagrant/ssh_test.rb
249
- - test/vagrant/util/errors_test.rb
250
- - test/vagrant/util/progress_meter_test.rb
262
+ - test/vagrant/systems/linux_test.rb
263
+ - test/vagrant/util/error_helper_test.rb
264
+ - test/vagrant/util/output_helper_test.rb
265
+ - test/vagrant/util/plain_logger_test.rb
266
+ - test/vagrant/util/platform_test.rb
251
267
  - test/vagrant/util/stacked_proc_runner_test.rb
252
268
  - test/vagrant/util/template_renderer_test.rb
269
+ - test/vagrant/util/translator_test.rb
253
270
  - test/vagrant/util_test.rb
254
271
  - test/vagrant/vm_test.rb
255
272
  - vagrant.gemspec
@@ -289,6 +306,7 @@ test_files:
289
306
  - test/vagrant/provisioners/chef_test.rb
290
307
  - test/vagrant/provisioners/chef_server_test.rb
291
308
  - test/vagrant/provisioners/chef_solo_test.rb
309
+ - test/vagrant/systems/linux_test.rb
292
310
  - test/vagrant/config_test.rb
293
311
  - test/vagrant/actions/base_test.rb
294
312
  - test/vagrant/actions/runner_test.rb
@@ -309,6 +327,7 @@ test_files:
309
327
  - test/vagrant/actions/vm/import_test.rb
310
328
  - test/vagrant/actions/vm/customize_test.rb
311
329
  - test/vagrant/actions/vm/start_test.rb
330
+ - test/vagrant/actions/vm/network_test.rb
312
331
  - test/vagrant/actions/vm/move_hard_drive_test.rb
313
332
  - test/vagrant/actions/vm/up_test.rb
314
333
  - test/vagrant/actions/vm/export_test.rb
@@ -322,7 +341,6 @@ test_files:
322
341
  - test/vagrant/commands/suspend_test.rb
323
342
  - test/vagrant/commands/package_test.rb
324
343
  - test/vagrant/commands/status_test.rb
325
- - test/vagrant/commands/down_test.rb
326
344
  - test/vagrant/commands/init_test.rb
327
345
  - test/vagrant/commands/destroy_test.rb
328
346
  - test/vagrant/commands/halt_test.rb
@@ -330,14 +348,20 @@ test_files:
330
348
  - test/vagrant/commands/box/add_test.rb
331
349
  - test/vagrant/commands/box/list_test.rb
332
350
  - test/vagrant/commands/up_test.rb
351
+ - test/vagrant/commands/provision_test.rb
333
352
  - test/vagrant/commands/resume_test.rb
334
353
  - test/vagrant/commands/ssh_test.rb
354
+ - test/vagrant/resource_logger_test.rb
335
355
  - test/vagrant/downloaders/base_test.rb
336
356
  - test/vagrant/downloaders/file_test.rb
337
357
  - test/vagrant/downloaders/http_test.rb
338
358
  - test/vagrant/util/stacked_proc_runner_test.rb
339
- - test/vagrant/util/progress_meter_test.rb
359
+ - test/vagrant/util/output_helper_test.rb
340
360
  - test/vagrant/util/template_renderer_test.rb
341
- - test/vagrant/util/errors_test.rb
361
+ - test/vagrant/util/translator_test.rb
362
+ - test/vagrant/util/platform_test.rb
363
+ - test/vagrant/util/error_helper_test.rb
364
+ - test/vagrant/util/plain_logger_test.rb
365
+ - test/vagrant/ssh_session_test.rb
342
366
  - test/vagrant/ssh_test.rb
343
367
  has_rdoc:
@@ -1,16 +0,0 @@
1
- module Vagrant
2
- class Commands
3
- # `vagrant down` is now `vagrant destroy`
4
- class Down < Base
5
- Base.subcommand "down", self
6
-
7
- def execute(args=[])
8
- error_and_exit(:command_deprecation_down)
9
- end
10
-
11
- def options_spec(opts)
12
- opts.banner = "Usage: vagrant down"
13
- end
14
- end
15
- end
16
- end
@@ -1,36 +0,0 @@
1
- require 'yaml'
2
-
3
- module Vagrant
4
- module Util
5
- # This class is responsible for outputting errors. It retrieves the errors,
6
- # based on their key, from the error file, and then outputs it.
7
- class Errors
8
- @@errors = nil
9
-
10
- class <<self
11
- # Resets the internal errors hash to nil, forcing a reload on the next
12
- # access of {errors}.
13
- def reset!
14
- @@errors = nil
15
- end
16
-
17
- # Returns the hash of errors from the error YML files. This only loads once,
18
- # then returns a cached value until {reset!} is called.
19
- #
20
- # @return [Hash]
21
- def errors
22
- @@errors ||= YAML.load_file(File.join(PROJECT_ROOT, "templates", "errors.yml"))
23
- end
24
-
25
- # Renders the error with the given key and data parameters and returns
26
- # the rendered result.
27
- #
28
- # @return [String]
29
- def error_string(key, data = {})
30
- template = errors[key] || "Unknown error key: #{key}"
31
- TemplateRenderer.render_string(template, data)
32
- end
33
- end
34
- end
35
- end
36
- end
@@ -1,33 +0,0 @@
1
- module Vagrant
2
- module Util
3
- # A mixin which allows any class to be able to show a "progress meter"
4
- # to standard out. The progress meter shows the progress of an operation
5
- # with console-animated text in stdout.
6
- module ProgressMeter
7
- # Updates the progress meter with the given progress amount and total.
8
- # This method will do the math to figure out a percentage and show it
9
- # within stdout.
10
- #
11
- # @param [Float] progress Progress
12
- # @param [Float] total Total
13
- def update_progress(progress, total, show_parts=true)
14
- percent = (progress.to_f / total.to_f) * 100
15
- print "#{cl_reset}Progress: #{percent.to_i}%"
16
- print " (#{progress} / #{total})" if show_parts
17
- $stdout.flush
18
- end
19
-
20
- # Completes the progress meter by resetting it off of the screen.
21
- def complete_progress
22
- # Just clear the line back out
23
- print "#{cl_reset}"
24
- end
25
-
26
- def cl_reset
27
- reset = "\r"
28
- reset += "\e[0K" unless Mario::Platform.windows?
29
- reset
30
- end
31
- end
32
- end
33
- end
@@ -1,17 +0,0 @@
1
- require File.join(File.dirname(__FILE__), '..', '..', 'test_helper')
2
-
3
- class CommandsDownTest < Test::Unit::TestCase
4
- setup do
5
- @klass = Vagrant::Commands::Down
6
-
7
- @env = mock_environment
8
- @instance = @klass.new(@env)
9
- end
10
-
11
- context "executing" do
12
- should "just error and exit" do
13
- @instance.expects(:error_and_exit).with(:command_deprecation_down)
14
- @instance.execute
15
- end
16
- end
17
- end