vagrantup 0.4.3.dev → 0.5.0

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.
Files changed (175) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -0
  3. data/config/default.rb +6 -6
  4. data/lib/vagrant.rb +6 -3
  5. data/lib/vagrant/action.rb +77 -0
  6. data/lib/vagrant/action/action_exception.rb +16 -0
  7. data/lib/vagrant/action/box/destroy.rb +19 -0
  8. data/lib/vagrant/action/box/download.rb +78 -0
  9. data/lib/vagrant/action/box/unpackage.rb +58 -0
  10. data/lib/vagrant/action/box/verify.rb +23 -0
  11. data/lib/vagrant/action/builder.rb +151 -0
  12. data/lib/vagrant/action/builtin.rb +114 -0
  13. data/lib/vagrant/action/env/error_halt.rb +16 -0
  14. data/lib/vagrant/action/env/set.rb +18 -0
  15. data/lib/vagrant/action/environment.rb +98 -0
  16. data/lib/vagrant/action/exception_catcher.rb +14 -0
  17. data/lib/vagrant/action/vm/boot.rb +54 -0
  18. data/lib/vagrant/action/vm/check_box.rb +27 -0
  19. data/lib/vagrant/action/vm/check_guest_additions.rb +32 -0
  20. data/lib/vagrant/action/vm/clean_machine_folder.rb +43 -0
  21. data/lib/vagrant/action/vm/clear_forwarded_ports.rb +39 -0
  22. data/lib/vagrant/action/vm/clear_nfs_exports.rb +20 -0
  23. data/lib/vagrant/action/vm/clear_shared_folders.rb +32 -0
  24. data/lib/vagrant/action/vm/customize.rb +21 -0
  25. data/lib/vagrant/action/vm/destroy.rb +20 -0
  26. data/lib/vagrant/action/vm/destroy_unused_network_interfaces.rb +35 -0
  27. data/lib/vagrant/action/vm/disable_networks.rb +26 -0
  28. data/lib/vagrant/action/vm/export.rb +53 -0
  29. data/lib/vagrant/action/vm/forward_ports.rb +121 -0
  30. data/lib/vagrant/action/vm/forward_ports_helpers.rb +28 -0
  31. data/lib/vagrant/action/vm/halt.rb +34 -0
  32. data/lib/vagrant/action/vm/import.rb +33 -0
  33. data/lib/vagrant/action/vm/match_mac_address.rb +19 -0
  34. data/lib/vagrant/{actions → action}/vm/network.rb +47 -55
  35. data/lib/vagrant/action/vm/nfs.rb +161 -0
  36. data/lib/vagrant/action/vm/nfs_helpers.rb +11 -0
  37. data/lib/vagrant/action/vm/package.rb +99 -0
  38. data/lib/vagrant/action/vm/persist.rb +22 -0
  39. data/lib/vagrant/action/vm/provision.rb +50 -0
  40. data/lib/vagrant/action/vm/resume.rb +20 -0
  41. data/lib/vagrant/{actions/vm/shared_folders.rb → action/vm/share_folders.rb} +48 -45
  42. data/lib/vagrant/action/vm/suspend.rb +20 -0
  43. data/lib/vagrant/box.rb +3 -7
  44. data/lib/vagrant/commands/base.rb +1 -3
  45. data/lib/vagrant/commands/package.rb +4 -9
  46. data/lib/vagrant/commands/up.rb +0 -2
  47. data/lib/vagrant/config.rb +15 -1
  48. data/lib/vagrant/downloaders/file.rb +1 -1
  49. data/lib/vagrant/downloaders/http.rb +2 -1
  50. data/lib/vagrant/environment.rb +18 -14
  51. data/lib/vagrant/hosts/base.rb +77 -0
  52. data/lib/vagrant/hosts/bsd.rb +53 -0
  53. data/lib/vagrant/hosts/linux.rb +52 -0
  54. data/lib/vagrant/provisioners/base.rb +17 -9
  55. data/lib/vagrant/provisioners/chef.rb +1 -1
  56. data/lib/vagrant/provisioners/chef_server.rb +4 -8
  57. data/lib/vagrant/provisioners/chef_solo.rb +1 -2
  58. data/lib/vagrant/ssh.rb +12 -4
  59. data/lib/vagrant/systems/base.rb +4 -0
  60. data/lib/vagrant/systems/linux.rb +12 -1
  61. data/lib/vagrant/util.rb +16 -0
  62. data/lib/vagrant/util/busy.rb +59 -0
  63. data/lib/vagrant/util/plain_logger.rb +11 -0
  64. data/lib/vagrant/util/platform.rb +18 -0
  65. data/lib/vagrant/util/resource_logger.rb +128 -0
  66. data/lib/vagrant/version.rb +6 -0
  67. data/lib/vagrant/vm.rb +10 -12
  68. data/templates/chef_solo_solo.erb +2 -1
  69. data/templates/nfs/exports.erb +3 -0
  70. data/templates/nfs/exports_linux.erb +3 -0
  71. data/templates/strings.yml +23 -3
  72. metadata +121 -196
  73. data/.gitignore +0 -11
  74. data/Gemfile +0 -18
  75. data/Rakefile +0 -41
  76. data/VERSION +0 -1
  77. data/bin/.gitignore +0 -0
  78. data/lib/vagrant/actions/base.rb +0 -130
  79. data/lib/vagrant/actions/box/add.rb +0 -23
  80. data/lib/vagrant/actions/box/destroy.rb +0 -14
  81. data/lib/vagrant/actions/box/download.rb +0 -67
  82. data/lib/vagrant/actions/box/unpackage.rb +0 -42
  83. data/lib/vagrant/actions/box/verify.rb +0 -32
  84. data/lib/vagrant/actions/collection.rb +0 -36
  85. data/lib/vagrant/actions/runner.rb +0 -131
  86. data/lib/vagrant/actions/vm/boot.rb +0 -43
  87. data/lib/vagrant/actions/vm/customize.rb +0 -19
  88. data/lib/vagrant/actions/vm/destroy.rb +0 -24
  89. data/lib/vagrant/actions/vm/down.rb +0 -22
  90. data/lib/vagrant/actions/vm/export.rb +0 -45
  91. data/lib/vagrant/actions/vm/forward_ports.rb +0 -134
  92. data/lib/vagrant/actions/vm/halt.rb +0 -24
  93. data/lib/vagrant/actions/vm/import.rb +0 -23
  94. data/lib/vagrant/actions/vm/move_hard_drive.rb +0 -51
  95. data/lib/vagrant/actions/vm/package.rb +0 -94
  96. data/lib/vagrant/actions/vm/provision.rb +0 -49
  97. data/lib/vagrant/actions/vm/reload.rb +0 -17
  98. data/lib/vagrant/actions/vm/resume.rb +0 -16
  99. data/lib/vagrant/actions/vm/start.rb +0 -26
  100. data/lib/vagrant/actions/vm/suspend.rb +0 -16
  101. data/lib/vagrant/actions/vm/up.rb +0 -53
  102. data/lib/vagrant/busy.rb +0 -79
  103. data/lib/vagrant/resource_logger.rb +0 -126
  104. data/lib/vagrant/util/error_helper.rb +0 -13
  105. data/lib/vagrant/util/output_helper.rb +0 -9
  106. data/test/test_helper.rb +0 -149
  107. data/test/vagrant/actions/base_test.rb +0 -32
  108. data/test/vagrant/actions/box/add_test.rb +0 -36
  109. data/test/vagrant/actions/box/destroy_test.rb +0 -17
  110. data/test/vagrant/actions/box/download_test.rb +0 -137
  111. data/test/vagrant/actions/box/unpackage_test.rb +0 -99
  112. data/test/vagrant/actions/box/verify_test.rb +0 -44
  113. data/test/vagrant/actions/collection_test.rb +0 -113
  114. data/test/vagrant/actions/runner_test.rb +0 -268
  115. data/test/vagrant/actions/vm/boot_test.rb +0 -49
  116. data/test/vagrant/actions/vm/customize_test.rb +0 -21
  117. data/test/vagrant/actions/vm/destroy_test.rb +0 -37
  118. data/test/vagrant/actions/vm/down_test.rb +0 -39
  119. data/test/vagrant/actions/vm/export_test.rb +0 -88
  120. data/test/vagrant/actions/vm/forward_ports_test.rb +0 -253
  121. data/test/vagrant/actions/vm/halt_test.rb +0 -65
  122. data/test/vagrant/actions/vm/import_test.rb +0 -45
  123. data/test/vagrant/actions/vm/move_hard_drive_test.rb +0 -106
  124. data/test/vagrant/actions/vm/network_test.rb +0 -291
  125. data/test/vagrant/actions/vm/package_test.rb +0 -254
  126. data/test/vagrant/actions/vm/provision_test.rb +0 -99
  127. data/test/vagrant/actions/vm/reload_test.rb +0 -46
  128. data/test/vagrant/actions/vm/resume_test.rb +0 -26
  129. data/test/vagrant/actions/vm/shared_folders_test.rb +0 -211
  130. data/test/vagrant/actions/vm/start_test.rb +0 -73
  131. data/test/vagrant/actions/vm/suspend_test.rb +0 -26
  132. data/test/vagrant/actions/vm/up_test.rb +0 -96
  133. data/test/vagrant/active_list_test.rb +0 -173
  134. data/test/vagrant/box_test.rb +0 -154
  135. data/test/vagrant/busy_test.rb +0 -78
  136. data/test/vagrant/command_test.rb +0 -53
  137. data/test/vagrant/commands/base_test.rb +0 -139
  138. data/test/vagrant/commands/box/add_test.rb +0 -34
  139. data/test/vagrant/commands/box/list_test.rb +0 -32
  140. data/test/vagrant/commands/box/remove_test.rb +0 -41
  141. data/test/vagrant/commands/destroy_test.rb +0 -44
  142. data/test/vagrant/commands/halt_test.rb +0 -50
  143. data/test/vagrant/commands/init_test.rb +0 -55
  144. data/test/vagrant/commands/package_test.rb +0 -104
  145. data/test/vagrant/commands/provision_test.rb +0 -60
  146. data/test/vagrant/commands/reload_test.rb +0 -44
  147. data/test/vagrant/commands/resume_test.rb +0 -44
  148. data/test/vagrant/commands/ssh_config_test.rb +0 -77
  149. data/test/vagrant/commands/ssh_test.rb +0 -129
  150. data/test/vagrant/commands/status_test.rb +0 -40
  151. data/test/vagrant/commands/suspend_test.rb +0 -44
  152. data/test/vagrant/commands/up_test.rb +0 -47
  153. data/test/vagrant/config_test.rb +0 -287
  154. data/test/vagrant/downloaders/base_test.rb +0 -28
  155. data/test/vagrant/downloaders/file_test.rb +0 -33
  156. data/test/vagrant/downloaders/http_test.rb +0 -62
  157. data/test/vagrant/environment_test.rb +0 -770
  158. data/test/vagrant/provisioners/base_test.rb +0 -33
  159. data/test/vagrant/provisioners/chef_server_test.rb +0 -176
  160. data/test/vagrant/provisioners/chef_solo_test.rb +0 -183
  161. data/test/vagrant/provisioners/chef_test.rb +0 -175
  162. data/test/vagrant/resource_logger_test.rb +0 -145
  163. data/test/vagrant/ssh_session_test.rb +0 -46
  164. data/test/vagrant/ssh_test.rb +0 -296
  165. data/test/vagrant/systems/linux_test.rb +0 -179
  166. data/test/vagrant/util/error_helper_test.rb +0 -5
  167. data/test/vagrant/util/output_helper_test.rb +0 -5
  168. data/test/vagrant/util/plain_logger_test.rb +0 -17
  169. data/test/vagrant/util/platform_test.rb +0 -18
  170. data/test/vagrant/util/stacked_proc_runner_test.rb +0 -43
  171. data/test/vagrant/util/template_renderer_test.rb +0 -144
  172. data/test/vagrant/util/translator_test.rb +0 -61
  173. data/test/vagrant/util_test.rb +0 -27
  174. data/test/vagrant/vm_test.rb +0 -235
  175. data/vagrant.gemspec +0 -291
@@ -3,6 +3,17 @@ module Vagrant
3
3
  # Subclass of the standard library logger which has no format on
4
4
  # its own. The message sent to the logger is outputted as-is.
5
5
  class PlainLogger < ::Logger
6
+ # This is the method which is called for all debug, info, error,
7
+ # etc. methods by the logger. This is overriden to verify that
8
+ # the output is always flushed.
9
+ #
10
+ # Logger by default syncs all log devices but this just verifies
11
+ # it is truly flushed.
12
+ def add(*args)
13
+ super
14
+ @logdev.dev.flush if @logdev
15
+ end
16
+
6
17
  def format_message(level, time, progname, msg)
7
18
  # We do no formatting, its up to the user
8
19
  "#{msg}\n"
@@ -7,10 +7,28 @@ module Vagrant
7
7
  RUBY_PLATFORM.downcase.include?("darwin9")
8
8
  end
9
9
 
10
+ [:darwin, :bsd, :linux].each do |type|
11
+ define_method("#{type}?") do
12
+ platform.include?(type.to_s)
13
+ end
14
+ end
15
+
16
+ def windows?
17
+ %W[mingw mswin].each do |text|
18
+ return true if platform.include?(text)
19
+ end
20
+
21
+ false
22
+ end
23
+
10
24
  def tar_file_options
11
25
  # create, write only, fail if the file exists, binary if windows
12
26
  File::WRONLY|File::EXCL|File::CREAT|(Mario::Platform.windows? ? File::BINARY : 0)
13
27
  end
28
+
29
+ def platform
30
+ RUBY_PLATFORM.to_s.downcase
31
+ end
14
32
  end
15
33
  end
16
34
  end
@@ -0,0 +1,128 @@
1
+ require 'thread'
2
+
3
+ module Vagrant
4
+ module Util
5
+ # Represents a logger for a specific resource within Vagrant. Each
6
+ # logger should be initialized and set to represent a single
7
+ # resource. Each logged message will then appear in the following
8
+ # format:
9
+ #
10
+ # [resource] message
11
+ #
12
+ # This class is thread safe. The backing class which actually does
13
+ # all the logging IO is protected.
14
+ #
15
+ # This class also handles progress meters of multiple resources and
16
+ # handles all the proper interleaving and console updating to
17
+ # display the progress meters in a way which doesn't conflict with
18
+ # other incoming log messages.
19
+ class ResourceLogger
20
+ @@singleton_logger = nil
21
+ @@progress_reporters = nil
22
+ @@writer_lock = Mutex.new
23
+
24
+ # The resource which this logger represents.
25
+ attr_reader :resource
26
+
27
+ # The environment that this logger is part of
28
+ attr_reader :env
29
+
30
+ # The backing logger which actually handles the IO. This logger
31
+ # should be a subclass of the standard library Logger, in general.
32
+ # IMPORTANT: This logger must be thread-safe.
33
+ attr_reader :logger
34
+
35
+ class << self
36
+ # Returns a singleton logger. If one has not yet be
37
+ # instantiated, then the given environment will be used to
38
+ # create a new logger.
39
+ def singleton_logger(env=nil)
40
+ if env && env.config && env.config.loaded?
41
+ @@singleton_logger ||= PlainLogger.new(env.config.vagrant.log_output)
42
+ else
43
+ PlainLogger.new(nil)
44
+ end
45
+ end
46
+
47
+ # Resets the singleton logger (only used for testing).
48
+ def reset_singleton_logger!
49
+ @@singleton_logger = nil
50
+ end
51
+
52
+ # Returns the progress parts array which contains the various
53
+ # progress reporters.
54
+ def progress_reporters
55
+ @@progress_reporters ||= {}
56
+ end
57
+ end
58
+
59
+ def initialize(resource, env)
60
+ @resource = resource
61
+ @env = env
62
+ @logger = self.class.singleton_logger(env)
63
+ end
64
+
65
+ [:debug, :info, :error, :fatal].each do |method|
66
+ define_method(method) do |message|
67
+ @@writer_lock.synchronize do
68
+ # We clear the line in case progress reports have been going
69
+ # out.
70
+ print(cl_reset)
71
+ logger.send(method, "[#{resource}] #{message}")
72
+ end
73
+
74
+ # Once again flush the progress reporters since we probably
75
+ # cleared any existing ones.
76
+ flush_progress
77
+ end
78
+ end
79
+
80
+ # Sets a progress report for the resource that this logger
81
+ # represents. This progress report is interleaved within the output.
82
+ def report_progress(progress, total, show_parts=true)
83
+ # Simply add the progress reporter to the list of progress
84
+ # reporters
85
+ self.class.progress_reporters[resource] = {
86
+ :progress => progress,
87
+ :total => total,
88
+ :show_parts => show_parts
89
+ }
90
+
91
+ # And force an update to occur
92
+ flush_progress
93
+ end
94
+
95
+ # Clears the progress report for this resource
96
+ def clear_progress
97
+ self.class.progress_reporters.delete(resource)
98
+ end
99
+
100
+ def flush_progress
101
+ # Don't do anything if there are no progress reporters
102
+ return if self.class.progress_reporters.length <= 0
103
+
104
+ @@writer_lock.synchronize do
105
+ reports = []
106
+
107
+ # First generate all the report percentages and output
108
+ self.class.progress_reporters.each do |name, data|
109
+ percent = (data[:progress].to_f / data[:total].to_f) * 100
110
+ line = "#{name}: #{percent.to_i}%"
111
+ line << " (#{data[:progress]} / #{data[:total]})" if data[:show_parts]
112
+ reports << line
113
+ end
114
+
115
+ # Output it to stdout
116
+ print "#{cl_reset}[progress] #{reports.join(" ")}"
117
+ $stdout.flush
118
+ end
119
+ end
120
+
121
+ def cl_reset
122
+ reset = "\r"
123
+ reset += "\e[0K" unless Mario::Platform.windows?
124
+ reset
125
+ end
126
+ end
127
+ end
128
+ end
@@ -0,0 +1,6 @@
1
+ module Vagrant
2
+ # This will always be up to date with the current version of Vagrant,
3
+ # since it is used to generate the gemspec and is also the source of
4
+ # the version for `vagrant -v`
5
+ VERSION = "0.5.0"
6
+ end
@@ -1,5 +1,5 @@
1
1
  module Vagrant
2
- class VM < Actions::Runner
2
+ class VM
3
3
  include Vagrant::Util
4
4
 
5
5
  attr_reader :env
@@ -94,43 +94,41 @@ module Vagrant
94
94
  end
95
95
 
96
96
  def package(options=nil)
97
- add_action(Actions::VM::Export, options)
98
- add_action(Actions::VM::Package, options)
99
- execute!
97
+ env.actions.run(:package, options)
100
98
  end
101
99
 
102
100
  def up(options=nil)
103
- execute!(Actions::VM::Up, options)
101
+ env.actions.run(:up, options)
104
102
  end
105
103
 
106
104
  def start
107
105
  return if @vm.running?
108
106
 
109
- execute!(Actions::VM::Start)
107
+ env.actions.run(:start)
110
108
  end
111
109
 
112
110
  def halt(options=nil)
113
- execute!(Actions::VM::Halt, options)
111
+ env.actions.run(:halt, options)
114
112
  end
115
113
 
116
114
  def reload
117
- execute!(Actions::VM::Reload)
115
+ env.actions.run(:reload)
118
116
  end
119
117
 
120
118
  def provision
121
- execute!(Actions::VM::Provision)
119
+ env.actions.run(:provision)
122
120
  end
123
121
 
124
122
  def destroy
125
- execute!(Actions::VM::Down)
123
+ env.actions.run(:destroy)
126
124
  end
127
125
 
128
126
  def suspend
129
- execute!(Actions::VM::Suspend)
127
+ env.actions.run(:suspend)
130
128
  end
131
129
 
132
130
  def resume
133
- execute!(Actions::VM::Resume)
131
+ env.actions.run(:resume)
134
132
  end
135
133
 
136
134
  def saved?
@@ -1,4 +1,5 @@
1
+ node_name "<%= node_name %>"
1
2
  file_cache_path "<%= provisioning_path %>"
2
3
  cookbook_path <%= cookbooks_path %>
3
4
  role_path <%= roles_path %>
4
- log_level <%= log_level.inspect %>
5
+ log_level <%= log_level.inspect %>
@@ -0,0 +1,3 @@
1
+ # VAGRANT-BEGIN: <%= uuid %>
2
+ <% folders.each do |name, opts| %><%= opts[:hostpath] %> <%= ip %><% if opts[:map_uid] %> -mapall=<%= [opts[:map_uid],opts[:map_gid]].compact.join(":") %><% end %><% end %>
3
+ # VAGRANT-END: <%= uuid %>
@@ -0,0 +1,3 @@
1
+ # VAGRANT-BEGIN: <%= uuid %>
2
+ <% folders.each do |name, opts| %><%= opts[:hostpath] %> <%= ip %>(rw,no_subtree_check,all_squash<% if opts[:map_uid] %>,anonuid=<%= opts[:map_uid] %><% end %><% if opts[:map_gid] %>,anongid=<%= opts[:map_gid] %><% end %>)<% end %>
3
+ # VAGRANT-END: <%= uuid %>
@@ -70,6 +70,12 @@
70
70
  A box with the name '<%= box_name %>' already exists, please use another name or use `vagrant box remove <%= box_name %>`
71
71
  :box_download_unknown_type: |-
72
72
  Unknown URI type for box download.
73
+ :box_download_http_socket_error: |-
74
+ An error occurred while trying to download the specified box. This most
75
+ often happens if there is no internet connection or the address is
76
+ invalid.
77
+
78
+ Box URL: <%= box_url %>
73
79
  :box_file_exists: |-
74
80
  The specified output file for packaging already exists. Please move
75
81
  the file or modify the output filename parameter then try to package
@@ -137,6 +143,17 @@
137
143
  already be created, but unfortunately this vagrant still appears to
138
144
  have no box! You can setup the environment by setting up your
139
145
  <%= Vagrant::Environment::ROOTFILE_NAME %> and running `vagrant up`
146
+ :nfs_host_required: |-
147
+ A host class is required for NFS shared folders. By default, these
148
+ are auto-detected, but can be overriden with `config.vagrant.host`.
149
+ There is currently not host class loaded.
150
+ :nfs_not_supported: |-
151
+ The host class is reporting that NFS is not supported by this host,
152
+ or `nfsd` may not be installed. Please verify that `nfsd` is installed
153
+ on your machine, and retry.
154
+ :nfs_no_host_network: |-
155
+ NFS shared folders requires that host only networking is enabled.
156
+ Please enable host only networking via `config.vm.network`.
140
157
  :network_not_found: |-
141
158
  The specified host network could not be found: <%= name %>.
142
159
  If the name specification is removed, Vagrant will create a new
@@ -240,7 +257,7 @@
240
257
  :virtualbox_not_detected: |-
241
258
  Vagrant could not detect VirtualBox! Make sure VirtualBox is properly installed.
242
259
  If VirtualBox is installed, it may be an incorrect version. Vagrant currently
243
- only supports VirtualBox 3.1.x. Please install the proper version to continue.
260
+ requires VirtualBox 3.2.x. Please install the proper version to continue.
244
261
  :virtualbox_invalid_ose: |-
245
262
  Vagrant has detected you're using an OSE ("Open Source Edition") of VirtualBox.
246
263
  Vagrant currently doesn't support any of the OSE editions due to slight API
@@ -250,8 +267,6 @@
250
267
  Failed to connect to VM! Failed to boot?
251
268
  :vm_base_not_found: |-
252
269
  The specified base VM "<%= name %>" was not found.
253
- :vm_not_running: |-
254
- VM is not running! Nothing to shut down!
255
270
  :vm_not_running_for_suspend: |-
256
271
  The vagrant virtual environment you are trying to suspend must be running to be suspended.
257
272
  :vm_not_suspended: |-
@@ -263,6 +278,11 @@
263
278
 
264
279
  VM: <%= vm_name %>
265
280
  Forwarded port: <%= name %> (<%= options[:guestport] %> => <%= options[:hostport] %>)
281
+ :vm_port_below_threshold: |-
282
+ The host port of all forwarded ports must be above 1024. VirtualBox
283
+ does not allow host ports to be below 1024. (Guest ports below 1024
284
+ are fine. For example: SSH on port 22 on the guest can be forwarded
285
+ to port 2222, but not 222).
266
286
  :vm_port_collision: |-
267
287
  Vagrant cannot forward the specified ports on this VM, since they
268
288
  would collide with another VirtualBox virtual machine's forwarded
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.3.dev
4
+ version: 0.5.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-07-02 00:00:00.000000000 Z
12
+ date: 2013-03-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: virtualbox
@@ -59,14 +59,14 @@ dependencies:
59
59
  requirements:
60
60
  - - '>='
61
61
  - !ruby/object:Gem::Version
62
- version: 1.2.0
62
+ version: 1.4.3
63
63
  type: :runtime
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - '>='
68
68
  - !ruby/object:Gem::Version
69
- version: 1.2.0
69
+ version: 1.4.3
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: archive-tar-minitar
72
72
  requirement: !ruby/object:Gem::Requirement
@@ -95,6 +95,62 @@ dependencies:
95
95
  - - ~>
96
96
  - !ruby/object:Gem::Version
97
97
  version: 0.0.6
98
+ - !ruby/object:Gem::Dependency
99
+ name: rake
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - '>='
103
+ - !ruby/object:Gem::Version
104
+ version: '0'
105
+ type: :development
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - '>='
110
+ - !ruby/object:Gem::Version
111
+ version: '0'
112
+ - !ruby/object:Gem::Dependency
113
+ name: contest
114
+ requirement: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - '>='
117
+ - !ruby/object:Gem::Version
118
+ version: 0.1.2
119
+ type: :development
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - '>='
124
+ - !ruby/object:Gem::Version
125
+ version: 0.1.2
126
+ - !ruby/object:Gem::Dependency
127
+ name: mocha
128
+ requirement: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - '>='
131
+ - !ruby/object:Gem::Version
132
+ version: '0'
133
+ type: :development
134
+ prerelease: false
135
+ version_requirements: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - '>='
138
+ - !ruby/object:Gem::Version
139
+ version: '0'
140
+ - !ruby/object:Gem::Dependency
141
+ name: ruby-debug
142
+ requirement: !ruby/object:Gem::Requirement
143
+ requirements:
144
+ - - '>='
145
+ - !ruby/object:Gem::Version
146
+ version: '0'
147
+ type: :development
148
+ prerelease: false
149
+ version_requirements: !ruby/object:Gem::Requirement
150
+ requirements:
151
+ - - '>='
152
+ - !ruby/object:Gem::Version
153
+ version: '0'
98
154
  description: Vagrant is a tool for building and distributing virtualized development
99
155
  environments.
100
156
  email:
@@ -103,59 +159,60 @@ email:
103
159
  executables:
104
160
  - vagrant
105
161
  extensions: []
106
- extra_rdoc_files:
107
- - LICENSE
108
- - README.md
162
+ extra_rdoc_files: []
109
163
  files:
110
- - .gitignore
111
- - Gemfile
112
- - LICENSE
113
- - README.md
114
- - Rakefile
115
- - VERSION
116
- - bin/.gitignore
117
164
  - bin/vagrant
118
165
  - config/default.rb
119
166
  - keys/README.md
120
167
  - keys/vagrant
121
168
  - keys/vagrant.ppk
122
169
  - keys/vagrant.pub
123
- - lib/vagrant.rb
124
- - lib/vagrant/actions/base.rb
125
- - lib/vagrant/actions/box/add.rb
126
- - lib/vagrant/actions/box/destroy.rb
127
- - lib/vagrant/actions/box/download.rb
128
- - lib/vagrant/actions/box/unpackage.rb
129
- - lib/vagrant/actions/box/verify.rb
130
- - lib/vagrant/actions/collection.rb
131
- - lib/vagrant/actions/runner.rb
132
- - lib/vagrant/actions/vm/boot.rb
133
- - lib/vagrant/actions/vm/customize.rb
134
- - lib/vagrant/actions/vm/destroy.rb
135
- - lib/vagrant/actions/vm/down.rb
136
- - lib/vagrant/actions/vm/export.rb
137
- - lib/vagrant/actions/vm/forward_ports.rb
138
- - lib/vagrant/actions/vm/halt.rb
139
- - lib/vagrant/actions/vm/import.rb
140
- - lib/vagrant/actions/vm/move_hard_drive.rb
141
- - lib/vagrant/actions/vm/network.rb
142
- - lib/vagrant/actions/vm/package.rb
143
- - lib/vagrant/actions/vm/provision.rb
144
- - lib/vagrant/actions/vm/reload.rb
145
- - lib/vagrant/actions/vm/resume.rb
146
- - lib/vagrant/actions/vm/shared_folders.rb
147
- - lib/vagrant/actions/vm/start.rb
148
- - lib/vagrant/actions/vm/suspend.rb
149
- - lib/vagrant/actions/vm/up.rb
170
+ - lib/vagrant/action/action_exception.rb
171
+ - lib/vagrant/action/box/destroy.rb
172
+ - lib/vagrant/action/box/download.rb
173
+ - lib/vagrant/action/box/unpackage.rb
174
+ - lib/vagrant/action/box/verify.rb
175
+ - lib/vagrant/action/builder.rb
176
+ - lib/vagrant/action/builtin.rb
177
+ - lib/vagrant/action/env/error_halt.rb
178
+ - lib/vagrant/action/env/set.rb
179
+ - lib/vagrant/action/environment.rb
180
+ - lib/vagrant/action/exception_catcher.rb
181
+ - lib/vagrant/action/vm/boot.rb
182
+ - lib/vagrant/action/vm/check_box.rb
183
+ - lib/vagrant/action/vm/check_guest_additions.rb
184
+ - lib/vagrant/action/vm/clean_machine_folder.rb
185
+ - lib/vagrant/action/vm/clear_forwarded_ports.rb
186
+ - lib/vagrant/action/vm/clear_nfs_exports.rb
187
+ - lib/vagrant/action/vm/clear_shared_folders.rb
188
+ - lib/vagrant/action/vm/customize.rb
189
+ - lib/vagrant/action/vm/destroy.rb
190
+ - lib/vagrant/action/vm/destroy_unused_network_interfaces.rb
191
+ - lib/vagrant/action/vm/disable_networks.rb
192
+ - lib/vagrant/action/vm/export.rb
193
+ - lib/vagrant/action/vm/forward_ports.rb
194
+ - lib/vagrant/action/vm/forward_ports_helpers.rb
195
+ - lib/vagrant/action/vm/halt.rb
196
+ - lib/vagrant/action/vm/import.rb
197
+ - lib/vagrant/action/vm/match_mac_address.rb
198
+ - lib/vagrant/action/vm/network.rb
199
+ - lib/vagrant/action/vm/nfs.rb
200
+ - lib/vagrant/action/vm/nfs_helpers.rb
201
+ - lib/vagrant/action/vm/package.rb
202
+ - lib/vagrant/action/vm/persist.rb
203
+ - lib/vagrant/action/vm/provision.rb
204
+ - lib/vagrant/action/vm/resume.rb
205
+ - lib/vagrant/action/vm/share_folders.rb
206
+ - lib/vagrant/action/vm/suspend.rb
207
+ - lib/vagrant/action.rb
150
208
  - lib/vagrant/active_list.rb
151
209
  - lib/vagrant/box.rb
152
- - lib/vagrant/busy.rb
153
210
  - lib/vagrant/command.rb
154
211
  - lib/vagrant/commands/base.rb
155
- - lib/vagrant/commands/box.rb
156
212
  - lib/vagrant/commands/box/add.rb
157
213
  - lib/vagrant/commands/box/list.rb
158
214
  - lib/vagrant/commands/box/remove.rb
215
+ - lib/vagrant/commands/box.rb
159
216
  - lib/vagrant/commands/destroy.rb
160
217
  - lib/vagrant/commands/halt.rb
161
218
  - lib/vagrant/commands/init.rb
@@ -173,109 +230,46 @@ files:
173
230
  - lib/vagrant/downloaders/file.rb
174
231
  - lib/vagrant/downloaders/http.rb
175
232
  - lib/vagrant/environment.rb
233
+ - lib/vagrant/hosts/base.rb
234
+ - lib/vagrant/hosts/bsd.rb
235
+ - lib/vagrant/hosts/linux.rb
176
236
  - lib/vagrant/provisioners/base.rb
177
237
  - lib/vagrant/provisioners/chef.rb
178
238
  - lib/vagrant/provisioners/chef_server.rb
179
239
  - lib/vagrant/provisioners/chef_solo.rb
180
- - lib/vagrant/resource_logger.rb
181
240
  - lib/vagrant/ssh.rb
182
241
  - lib/vagrant/systems/base.rb
183
242
  - lib/vagrant/systems/linux.rb
184
- - lib/vagrant/util.rb
185
- - lib/vagrant/util/error_helper.rb
243
+ - lib/vagrant/util/busy.rb
186
244
  - lib/vagrant/util/glob_loader.rb
187
- - lib/vagrant/util/output_helper.rb
188
245
  - lib/vagrant/util/plain_logger.rb
189
246
  - lib/vagrant/util/platform.rb
247
+ - lib/vagrant/util/resource_logger.rb
190
248
  - lib/vagrant/util/stacked_proc_runner.rb
191
249
  - lib/vagrant/util/template_renderer.rb
192
250
  - lib/vagrant/util/translator.rb
251
+ - lib/vagrant/util.rb
252
+ - lib/vagrant/version.rb
193
253
  - lib/vagrant/vm.rb
194
- - templates/Vagrantfile.erb
254
+ - lib/vagrant.rb
195
255
  - templates/chef_server_client.erb
196
256
  - templates/chef_solo_solo.erb
197
257
  - templates/network_entry.erb
258
+ - templates/nfs/exports.erb
259
+ - templates/nfs/exports_linux.erb
198
260
  - templates/package_Vagrantfile.erb
199
261
  - templates/ssh_config.erb
200
262
  - templates/strings.yml
201
263
  - templates/unison/crontab_entry.erb
202
264
  - templates/unison/script.erb
203
- - test/test_helper.rb
204
- - test/vagrant/actions/base_test.rb
205
- - test/vagrant/actions/box/add_test.rb
206
- - test/vagrant/actions/box/destroy_test.rb
207
- - test/vagrant/actions/box/download_test.rb
208
- - test/vagrant/actions/box/unpackage_test.rb
209
- - test/vagrant/actions/box/verify_test.rb
210
- - test/vagrant/actions/collection_test.rb
211
- - test/vagrant/actions/runner_test.rb
212
- - test/vagrant/actions/vm/boot_test.rb
213
- - test/vagrant/actions/vm/customize_test.rb
214
- - test/vagrant/actions/vm/destroy_test.rb
215
- - test/vagrant/actions/vm/down_test.rb
216
- - test/vagrant/actions/vm/export_test.rb
217
- - test/vagrant/actions/vm/forward_ports_test.rb
218
- - test/vagrant/actions/vm/halt_test.rb
219
- - test/vagrant/actions/vm/import_test.rb
220
- - test/vagrant/actions/vm/move_hard_drive_test.rb
221
- - test/vagrant/actions/vm/network_test.rb
222
- - test/vagrant/actions/vm/package_test.rb
223
- - test/vagrant/actions/vm/provision_test.rb
224
- - test/vagrant/actions/vm/reload_test.rb
225
- - test/vagrant/actions/vm/resume_test.rb
226
- - test/vagrant/actions/vm/shared_folders_test.rb
227
- - test/vagrant/actions/vm/start_test.rb
228
- - test/vagrant/actions/vm/suspend_test.rb
229
- - test/vagrant/actions/vm/up_test.rb
230
- - test/vagrant/active_list_test.rb
231
- - test/vagrant/box_test.rb
232
- - test/vagrant/busy_test.rb
233
- - test/vagrant/command_test.rb
234
- - test/vagrant/commands/base_test.rb
235
- - test/vagrant/commands/box/add_test.rb
236
- - test/vagrant/commands/box/list_test.rb
237
- - test/vagrant/commands/box/remove_test.rb
238
- - test/vagrant/commands/destroy_test.rb
239
- - test/vagrant/commands/halt_test.rb
240
- - test/vagrant/commands/init_test.rb
241
- - test/vagrant/commands/package_test.rb
242
- - test/vagrant/commands/provision_test.rb
243
- - test/vagrant/commands/reload_test.rb
244
- - test/vagrant/commands/resume_test.rb
245
- - test/vagrant/commands/ssh_config_test.rb
246
- - test/vagrant/commands/ssh_test.rb
247
- - test/vagrant/commands/status_test.rb
248
- - test/vagrant/commands/suspend_test.rb
249
- - test/vagrant/commands/up_test.rb
250
- - test/vagrant/config_test.rb
251
- - test/vagrant/downloaders/base_test.rb
252
- - test/vagrant/downloaders/file_test.rb
253
- - test/vagrant/downloaders/http_test.rb
254
- - test/vagrant/environment_test.rb
255
- - test/vagrant/provisioners/base_test.rb
256
- - test/vagrant/provisioners/chef_server_test.rb
257
- - test/vagrant/provisioners/chef_solo_test.rb
258
- - test/vagrant/provisioners/chef_test.rb
259
- - test/vagrant/resource_logger_test.rb
260
- - test/vagrant/ssh_session_test.rb
261
- - test/vagrant/ssh_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
267
- - test/vagrant/util/stacked_proc_runner_test.rb
268
- - test/vagrant/util/template_renderer_test.rb
269
- - test/vagrant/util/translator_test.rb
270
- - test/vagrant/util_test.rb
271
- - test/vagrant/vm_test.rb
272
- - vagrant.gemspec
273
- homepage: http://github.com/mitchellh/vagrant
265
+ - templates/Vagrantfile.erb
266
+ - LICENSE
267
+ - README.md
268
+ homepage: http://vagrantup.com
274
269
  licenses: []
275
270
  metadata: {}
276
271
  post_install_message:
277
- rdoc_options:
278
- - --charset=UTF-8
272
+ rdoc_options: []
279
273
  require_paths:
280
274
  - lib
281
275
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -285,83 +279,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
285
279
  version: '0'
286
280
  required_rubygems_version: !ruby/object:Gem::Requirement
287
281
  requirements:
288
- - - '>'
282
+ - - '>='
289
283
  - !ruby/object:Gem::Version
290
- version: 1.3.1
284
+ version: '0'
291
285
  requirements: []
292
- rubyforge_project:
286
+ rubyforge_project: vagrant
293
287
  rubygems_version: 2.0.0
294
288
  signing_key:
295
- specification_version: 3
296
- summary: Vagrant is a tool for building and distributing virtualized development environments.
297
- test_files:
298
- - test/test_helper.rb
299
- - test/vagrant/actions/base_test.rb
300
- - test/vagrant/actions/box/add_test.rb
301
- - test/vagrant/actions/box/destroy_test.rb
302
- - test/vagrant/actions/box/download_test.rb
303
- - test/vagrant/actions/box/unpackage_test.rb
304
- - test/vagrant/actions/box/verify_test.rb
305
- - test/vagrant/actions/collection_test.rb
306
- - test/vagrant/actions/runner_test.rb
307
- - test/vagrant/actions/vm/boot_test.rb
308
- - test/vagrant/actions/vm/customize_test.rb
309
- - test/vagrant/actions/vm/destroy_test.rb
310
- - test/vagrant/actions/vm/down_test.rb
311
- - test/vagrant/actions/vm/export_test.rb
312
- - test/vagrant/actions/vm/forward_ports_test.rb
313
- - test/vagrant/actions/vm/halt_test.rb
314
- - test/vagrant/actions/vm/import_test.rb
315
- - test/vagrant/actions/vm/move_hard_drive_test.rb
316
- - test/vagrant/actions/vm/network_test.rb
317
- - test/vagrant/actions/vm/package_test.rb
318
- - test/vagrant/actions/vm/provision_test.rb
319
- - test/vagrant/actions/vm/reload_test.rb
320
- - test/vagrant/actions/vm/resume_test.rb
321
- - test/vagrant/actions/vm/shared_folders_test.rb
322
- - test/vagrant/actions/vm/start_test.rb
323
- - test/vagrant/actions/vm/suspend_test.rb
324
- - test/vagrant/actions/vm/up_test.rb
325
- - test/vagrant/active_list_test.rb
326
- - test/vagrant/box_test.rb
327
- - test/vagrant/busy_test.rb
328
- - test/vagrant/command_test.rb
329
- - test/vagrant/commands/base_test.rb
330
- - test/vagrant/commands/box/add_test.rb
331
- - test/vagrant/commands/box/list_test.rb
332
- - test/vagrant/commands/box/remove_test.rb
333
- - test/vagrant/commands/destroy_test.rb
334
- - test/vagrant/commands/halt_test.rb
335
- - test/vagrant/commands/init_test.rb
336
- - test/vagrant/commands/package_test.rb
337
- - test/vagrant/commands/provision_test.rb
338
- - test/vagrant/commands/reload_test.rb
339
- - test/vagrant/commands/resume_test.rb
340
- - test/vagrant/commands/ssh_config_test.rb
341
- - test/vagrant/commands/ssh_test.rb
342
- - test/vagrant/commands/status_test.rb
343
- - test/vagrant/commands/suspend_test.rb
344
- - test/vagrant/commands/up_test.rb
345
- - test/vagrant/config_test.rb
346
- - test/vagrant/downloaders/base_test.rb
347
- - test/vagrant/downloaders/file_test.rb
348
- - test/vagrant/downloaders/http_test.rb
349
- - test/vagrant/environment_test.rb
350
- - test/vagrant/provisioners/base_test.rb
351
- - test/vagrant/provisioners/chef_server_test.rb
352
- - test/vagrant/provisioners/chef_solo_test.rb
353
- - test/vagrant/provisioners/chef_test.rb
354
- - test/vagrant/resource_logger_test.rb
355
- - test/vagrant/ssh_session_test.rb
356
- - test/vagrant/ssh_test.rb
357
- - test/vagrant/systems/linux_test.rb
358
- - test/vagrant/util/error_helper_test.rb
359
- - test/vagrant/util/output_helper_test.rb
360
- - test/vagrant/util/plain_logger_test.rb
361
- - test/vagrant/util/platform_test.rb
362
- - test/vagrant/util/stacked_proc_runner_test.rb
363
- - test/vagrant/util/template_renderer_test.rb
364
- - test/vagrant/util/translator_test.rb
365
- - test/vagrant/util_test.rb
366
- - test/vagrant/vm_test.rb
289
+ specification_version: 4
290
+ summary: Build and distribute virtualized development environments.
291
+ test_files: []
367
292
  has_rdoc: