vagrant 0.4.2 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (174) hide show
  1. data/README.md +1 -0
  2. data/config/default.rb +6 -6
  3. data/lib/vagrant.rb +6 -3
  4. data/lib/vagrant/action.rb +77 -0
  5. data/lib/vagrant/action/action_exception.rb +16 -0
  6. data/lib/vagrant/action/box/destroy.rb +19 -0
  7. data/lib/vagrant/action/box/download.rb +78 -0
  8. data/lib/vagrant/action/box/unpackage.rb +58 -0
  9. data/lib/vagrant/action/box/verify.rb +23 -0
  10. data/lib/vagrant/action/builder.rb +151 -0
  11. data/lib/vagrant/action/builtin.rb +114 -0
  12. data/lib/vagrant/action/env/error_halt.rb +16 -0
  13. data/lib/vagrant/action/env/set.rb +18 -0
  14. data/lib/vagrant/action/environment.rb +98 -0
  15. data/lib/vagrant/action/exception_catcher.rb +14 -0
  16. data/lib/vagrant/action/vm/boot.rb +54 -0
  17. data/lib/vagrant/action/vm/check_box.rb +27 -0
  18. data/lib/vagrant/action/vm/check_guest_additions.rb +32 -0
  19. data/lib/vagrant/action/vm/clean_machine_folder.rb +43 -0
  20. data/lib/vagrant/action/vm/clear_forwarded_ports.rb +39 -0
  21. data/lib/vagrant/action/vm/clear_nfs_exports.rb +20 -0
  22. data/lib/vagrant/action/vm/clear_shared_folders.rb +32 -0
  23. data/lib/vagrant/action/vm/customize.rb +21 -0
  24. data/lib/vagrant/action/vm/destroy.rb +20 -0
  25. data/lib/vagrant/action/vm/destroy_unused_network_interfaces.rb +35 -0
  26. data/lib/vagrant/action/vm/disable_networks.rb +26 -0
  27. data/lib/vagrant/action/vm/export.rb +53 -0
  28. data/lib/vagrant/action/vm/forward_ports.rb +121 -0
  29. data/lib/vagrant/action/vm/forward_ports_helpers.rb +28 -0
  30. data/lib/vagrant/action/vm/halt.rb +34 -0
  31. data/lib/vagrant/action/vm/import.rb +33 -0
  32. data/lib/vagrant/action/vm/match_mac_address.rb +19 -0
  33. data/lib/vagrant/{actions → action}/vm/network.rb +47 -55
  34. data/lib/vagrant/action/vm/nfs.rb +161 -0
  35. data/lib/vagrant/action/vm/nfs_helpers.rb +11 -0
  36. data/lib/vagrant/action/vm/package.rb +99 -0
  37. data/lib/vagrant/action/vm/persist.rb +22 -0
  38. data/lib/vagrant/action/vm/provision.rb +50 -0
  39. data/lib/vagrant/action/vm/resume.rb +20 -0
  40. data/lib/vagrant/{actions/vm/shared_folders.rb → action/vm/share_folders.rb} +48 -45
  41. data/lib/vagrant/action/vm/suspend.rb +20 -0
  42. data/lib/vagrant/box.rb +3 -7
  43. data/lib/vagrant/commands/base.rb +1 -3
  44. data/lib/vagrant/commands/package.rb +4 -9
  45. data/lib/vagrant/commands/up.rb +0 -2
  46. data/lib/vagrant/config.rb +15 -1
  47. data/lib/vagrant/downloaders/file.rb +1 -1
  48. data/lib/vagrant/downloaders/http.rb +2 -1
  49. data/lib/vagrant/environment.rb +18 -14
  50. data/lib/vagrant/hosts/base.rb +77 -0
  51. data/lib/vagrant/hosts/bsd.rb +53 -0
  52. data/lib/vagrant/hosts/linux.rb +52 -0
  53. data/lib/vagrant/provisioners/base.rb +17 -9
  54. data/lib/vagrant/provisioners/chef.rb +1 -1
  55. data/lib/vagrant/provisioners/chef_server.rb +4 -8
  56. data/lib/vagrant/provisioners/chef_solo.rb +1 -2
  57. data/lib/vagrant/ssh.rb +12 -4
  58. data/lib/vagrant/systems/base.rb +4 -0
  59. data/lib/vagrant/systems/linux.rb +12 -1
  60. data/lib/vagrant/util.rb +16 -0
  61. data/lib/vagrant/util/busy.rb +59 -0
  62. data/lib/vagrant/util/plain_logger.rb +11 -0
  63. data/lib/vagrant/util/platform.rb +18 -0
  64. data/lib/vagrant/util/resource_logger.rb +128 -0
  65. data/lib/vagrant/version.rb +6 -0
  66. data/lib/vagrant/vm.rb +10 -12
  67. data/templates/chef_solo_solo.erb +2 -1
  68. data/templates/nfs/exports.erb +3 -0
  69. data/templates/nfs/exports_linux.erb +3 -0
  70. data/templates/strings.yml +23 -3
  71. metadata +128 -198
  72. data/.gitignore +0 -11
  73. data/Gemfile +0 -18
  74. data/Rakefile +0 -41
  75. data/VERSION +0 -1
  76. data/bin/.gitignore +0 -0
  77. data/lib/vagrant/actions/base.rb +0 -130
  78. data/lib/vagrant/actions/box/add.rb +0 -23
  79. data/lib/vagrant/actions/box/destroy.rb +0 -14
  80. data/lib/vagrant/actions/box/download.rb +0 -67
  81. data/lib/vagrant/actions/box/unpackage.rb +0 -42
  82. data/lib/vagrant/actions/box/verify.rb +0 -32
  83. data/lib/vagrant/actions/collection.rb +0 -36
  84. data/lib/vagrant/actions/runner.rb +0 -131
  85. data/lib/vagrant/actions/vm/boot.rb +0 -43
  86. data/lib/vagrant/actions/vm/customize.rb +0 -19
  87. data/lib/vagrant/actions/vm/destroy.rb +0 -24
  88. data/lib/vagrant/actions/vm/down.rb +0 -22
  89. data/lib/vagrant/actions/vm/export.rb +0 -45
  90. data/lib/vagrant/actions/vm/forward_ports.rb +0 -134
  91. data/lib/vagrant/actions/vm/halt.rb +0 -24
  92. data/lib/vagrant/actions/vm/import.rb +0 -23
  93. data/lib/vagrant/actions/vm/move_hard_drive.rb +0 -51
  94. data/lib/vagrant/actions/vm/package.rb +0 -94
  95. data/lib/vagrant/actions/vm/provision.rb +0 -49
  96. data/lib/vagrant/actions/vm/reload.rb +0 -17
  97. data/lib/vagrant/actions/vm/resume.rb +0 -16
  98. data/lib/vagrant/actions/vm/start.rb +0 -26
  99. data/lib/vagrant/actions/vm/suspend.rb +0 -16
  100. data/lib/vagrant/actions/vm/up.rb +0 -53
  101. data/lib/vagrant/busy.rb +0 -79
  102. data/lib/vagrant/resource_logger.rb +0 -126
  103. data/lib/vagrant/util/error_helper.rb +0 -13
  104. data/lib/vagrant/util/output_helper.rb +0 -9
  105. data/test/test_helper.rb +0 -149
  106. data/test/vagrant/actions/base_test.rb +0 -32
  107. data/test/vagrant/actions/box/add_test.rb +0 -36
  108. data/test/vagrant/actions/box/destroy_test.rb +0 -17
  109. data/test/vagrant/actions/box/download_test.rb +0 -137
  110. data/test/vagrant/actions/box/unpackage_test.rb +0 -99
  111. data/test/vagrant/actions/box/verify_test.rb +0 -44
  112. data/test/vagrant/actions/collection_test.rb +0 -113
  113. data/test/vagrant/actions/runner_test.rb +0 -268
  114. data/test/vagrant/actions/vm/boot_test.rb +0 -49
  115. data/test/vagrant/actions/vm/customize_test.rb +0 -21
  116. data/test/vagrant/actions/vm/destroy_test.rb +0 -37
  117. data/test/vagrant/actions/vm/down_test.rb +0 -39
  118. data/test/vagrant/actions/vm/export_test.rb +0 -88
  119. data/test/vagrant/actions/vm/forward_ports_test.rb +0 -253
  120. data/test/vagrant/actions/vm/halt_test.rb +0 -65
  121. data/test/vagrant/actions/vm/import_test.rb +0 -45
  122. data/test/vagrant/actions/vm/move_hard_drive_test.rb +0 -106
  123. data/test/vagrant/actions/vm/network_test.rb +0 -291
  124. data/test/vagrant/actions/vm/package_test.rb +0 -254
  125. data/test/vagrant/actions/vm/provision_test.rb +0 -99
  126. data/test/vagrant/actions/vm/reload_test.rb +0 -46
  127. data/test/vagrant/actions/vm/resume_test.rb +0 -26
  128. data/test/vagrant/actions/vm/shared_folders_test.rb +0 -211
  129. data/test/vagrant/actions/vm/start_test.rb +0 -73
  130. data/test/vagrant/actions/vm/suspend_test.rb +0 -26
  131. data/test/vagrant/actions/vm/up_test.rb +0 -96
  132. data/test/vagrant/active_list_test.rb +0 -173
  133. data/test/vagrant/box_test.rb +0 -154
  134. data/test/vagrant/busy_test.rb +0 -78
  135. data/test/vagrant/command_test.rb +0 -53
  136. data/test/vagrant/commands/base_test.rb +0 -139
  137. data/test/vagrant/commands/box/add_test.rb +0 -34
  138. data/test/vagrant/commands/box/list_test.rb +0 -32
  139. data/test/vagrant/commands/box/remove_test.rb +0 -41
  140. data/test/vagrant/commands/destroy_test.rb +0 -44
  141. data/test/vagrant/commands/halt_test.rb +0 -50
  142. data/test/vagrant/commands/init_test.rb +0 -55
  143. data/test/vagrant/commands/package_test.rb +0 -104
  144. data/test/vagrant/commands/provision_test.rb +0 -60
  145. data/test/vagrant/commands/reload_test.rb +0 -44
  146. data/test/vagrant/commands/resume_test.rb +0 -44
  147. data/test/vagrant/commands/ssh_config_test.rb +0 -77
  148. data/test/vagrant/commands/ssh_test.rb +0 -129
  149. data/test/vagrant/commands/status_test.rb +0 -40
  150. data/test/vagrant/commands/suspend_test.rb +0 -44
  151. data/test/vagrant/commands/up_test.rb +0 -47
  152. data/test/vagrant/config_test.rb +0 -287
  153. data/test/vagrant/downloaders/base_test.rb +0 -28
  154. data/test/vagrant/downloaders/file_test.rb +0 -33
  155. data/test/vagrant/downloaders/http_test.rb +0 -62
  156. data/test/vagrant/environment_test.rb +0 -770
  157. data/test/vagrant/provisioners/base_test.rb +0 -33
  158. data/test/vagrant/provisioners/chef_server_test.rb +0 -176
  159. data/test/vagrant/provisioners/chef_solo_test.rb +0 -183
  160. data/test/vagrant/provisioners/chef_test.rb +0 -175
  161. data/test/vagrant/resource_logger_test.rb +0 -145
  162. data/test/vagrant/ssh_session_test.rb +0 -46
  163. data/test/vagrant/ssh_test.rb +0 -296
  164. data/test/vagrant/systems/linux_test.rb +0 -179
  165. data/test/vagrant/util/error_helper_test.rb +0 -5
  166. data/test/vagrant/util/output_helper_test.rb +0 -5
  167. data/test/vagrant/util/plain_logger_test.rb +0 -17
  168. data/test/vagrant/util/platform_test.rb +0 -18
  169. data/test/vagrant/util/stacked_proc_runner_test.rb +0 -43
  170. data/test/vagrant/util/template_renderer_test.rb +0 -144
  171. data/test/vagrant/util/translator_test.rb +0 -61
  172. data/test/vagrant/util_test.rb +0 -27
  173. data/test/vagrant/vm_test.rb +0 -235
  174. 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
data/lib/vagrant/vm.rb CHANGED
@@ -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
@@ -5,9 +5,9 @@ version: !ruby/object:Gem::Version
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 4
9
- - 2
10
- version: 0.4.2
8
+ - 5
9
+ - 0
10
+ version: 0.5.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Mitchell Hashimoto
@@ -16,8 +16,8 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-07-02 00:00:00 -07:00
20
- default_executable: vagrant
19
+ date: 2010-07-26 00:00:00 -07:00
20
+ default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  name: virtualbox
@@ -75,12 +75,12 @@ dependencies:
75
75
  requirements:
76
76
  - - ">="
77
77
  - !ruby/object:Gem::Version
78
- hash: 31
78
+ hash: 1
79
79
  segments:
80
80
  - 1
81
- - 2
82
- - 0
83
- version: 1.2.0
81
+ - 4
82
+ - 3
83
+ version: 1.4.3
84
84
  type: :runtime
85
85
  version_requirements: *id004
86
86
  - !ruby/object:Gem::Dependency
@@ -115,6 +115,64 @@ dependencies:
115
115
  version: 0.0.6
116
116
  type: :runtime
117
117
  version_requirements: *id006
118
+ - !ruby/object:Gem::Dependency
119
+ name: rake
120
+ prerelease: false
121
+ requirement: &id007 !ruby/object:Gem::Requirement
122
+ none: false
123
+ requirements:
124
+ - - ">="
125
+ - !ruby/object:Gem::Version
126
+ hash: 3
127
+ segments:
128
+ - 0
129
+ version: "0"
130
+ type: :development
131
+ version_requirements: *id007
132
+ - !ruby/object:Gem::Dependency
133
+ name: contest
134
+ prerelease: false
135
+ requirement: &id008 !ruby/object:Gem::Requirement
136
+ none: false
137
+ requirements:
138
+ - - ">="
139
+ - !ruby/object:Gem::Version
140
+ hash: 31
141
+ segments:
142
+ - 0
143
+ - 1
144
+ - 2
145
+ version: 0.1.2
146
+ type: :development
147
+ version_requirements: *id008
148
+ - !ruby/object:Gem::Dependency
149
+ name: mocha
150
+ prerelease: false
151
+ requirement: &id009 !ruby/object:Gem::Requirement
152
+ none: false
153
+ requirements:
154
+ - - ">="
155
+ - !ruby/object:Gem::Version
156
+ hash: 3
157
+ segments:
158
+ - 0
159
+ version: "0"
160
+ type: :development
161
+ version_requirements: *id009
162
+ - !ruby/object:Gem::Dependency
163
+ name: ruby-debug
164
+ prerelease: false
165
+ requirement: &id010 !ruby/object:Gem::Requirement
166
+ none: false
167
+ requirements:
168
+ - - ">="
169
+ - !ruby/object:Gem::Version
170
+ hash: 3
171
+ segments:
172
+ - 0
173
+ version: "0"
174
+ type: :development
175
+ version_requirements: *id010
118
176
  description: Vagrant is a tool for building and distributing virtualized development environments.
119
177
  email:
120
178
  - mitchell.hashimoto@gmail.com
@@ -123,59 +181,61 @@ executables:
123
181
  - vagrant
124
182
  extensions: []
125
183
 
126
- extra_rdoc_files:
127
- - LICENSE
128
- - README.md
184
+ extra_rdoc_files: []
185
+
129
186
  files:
130
- - .gitignore
131
- - Gemfile
132
- - LICENSE
133
- - README.md
134
- - Rakefile
135
- - VERSION
136
- - bin/.gitignore
137
187
  - bin/vagrant
138
188
  - config/default.rb
139
189
  - keys/README.md
140
190
  - keys/vagrant
141
191
  - keys/vagrant.ppk
142
192
  - keys/vagrant.pub
143
- - lib/vagrant.rb
144
- - lib/vagrant/actions/base.rb
145
- - lib/vagrant/actions/box/add.rb
146
- - lib/vagrant/actions/box/destroy.rb
147
- - lib/vagrant/actions/box/download.rb
148
- - lib/vagrant/actions/box/unpackage.rb
149
- - lib/vagrant/actions/box/verify.rb
150
- - lib/vagrant/actions/collection.rb
151
- - lib/vagrant/actions/runner.rb
152
- - lib/vagrant/actions/vm/boot.rb
153
- - lib/vagrant/actions/vm/customize.rb
154
- - lib/vagrant/actions/vm/destroy.rb
155
- - lib/vagrant/actions/vm/down.rb
156
- - lib/vagrant/actions/vm/export.rb
157
- - lib/vagrant/actions/vm/forward_ports.rb
158
- - lib/vagrant/actions/vm/halt.rb
159
- - lib/vagrant/actions/vm/import.rb
160
- - lib/vagrant/actions/vm/move_hard_drive.rb
161
- - lib/vagrant/actions/vm/network.rb
162
- - lib/vagrant/actions/vm/package.rb
163
- - lib/vagrant/actions/vm/provision.rb
164
- - lib/vagrant/actions/vm/reload.rb
165
- - lib/vagrant/actions/vm/resume.rb
166
- - lib/vagrant/actions/vm/shared_folders.rb
167
- - lib/vagrant/actions/vm/start.rb
168
- - lib/vagrant/actions/vm/suspend.rb
169
- - lib/vagrant/actions/vm/up.rb
193
+ - lib/vagrant/action/action_exception.rb
194
+ - lib/vagrant/action/box/destroy.rb
195
+ - lib/vagrant/action/box/download.rb
196
+ - lib/vagrant/action/box/unpackage.rb
197
+ - lib/vagrant/action/box/verify.rb
198
+ - lib/vagrant/action/builder.rb
199
+ - lib/vagrant/action/builtin.rb
200
+ - lib/vagrant/action/env/error_halt.rb
201
+ - lib/vagrant/action/env/set.rb
202
+ - lib/vagrant/action/environment.rb
203
+ - lib/vagrant/action/exception_catcher.rb
204
+ - lib/vagrant/action/vm/boot.rb
205
+ - lib/vagrant/action/vm/check_box.rb
206
+ - lib/vagrant/action/vm/check_guest_additions.rb
207
+ - lib/vagrant/action/vm/clean_machine_folder.rb
208
+ - lib/vagrant/action/vm/clear_forwarded_ports.rb
209
+ - lib/vagrant/action/vm/clear_nfs_exports.rb
210
+ - lib/vagrant/action/vm/clear_shared_folders.rb
211
+ - lib/vagrant/action/vm/customize.rb
212
+ - lib/vagrant/action/vm/destroy.rb
213
+ - lib/vagrant/action/vm/destroy_unused_network_interfaces.rb
214
+ - lib/vagrant/action/vm/disable_networks.rb
215
+ - lib/vagrant/action/vm/export.rb
216
+ - lib/vagrant/action/vm/forward_ports.rb
217
+ - lib/vagrant/action/vm/forward_ports_helpers.rb
218
+ - lib/vagrant/action/vm/halt.rb
219
+ - lib/vagrant/action/vm/import.rb
220
+ - lib/vagrant/action/vm/match_mac_address.rb
221
+ - lib/vagrant/action/vm/network.rb
222
+ - lib/vagrant/action/vm/nfs.rb
223
+ - lib/vagrant/action/vm/nfs_helpers.rb
224
+ - lib/vagrant/action/vm/package.rb
225
+ - lib/vagrant/action/vm/persist.rb
226
+ - lib/vagrant/action/vm/provision.rb
227
+ - lib/vagrant/action/vm/resume.rb
228
+ - lib/vagrant/action/vm/share_folders.rb
229
+ - lib/vagrant/action/vm/suspend.rb
230
+ - lib/vagrant/action.rb
170
231
  - lib/vagrant/active_list.rb
171
232
  - lib/vagrant/box.rb
172
- - lib/vagrant/busy.rb
173
233
  - lib/vagrant/command.rb
174
234
  - lib/vagrant/commands/base.rb
175
- - lib/vagrant/commands/box.rb
176
235
  - lib/vagrant/commands/box/add.rb
177
236
  - lib/vagrant/commands/box/list.rb
178
237
  - lib/vagrant/commands/box/remove.rb
238
+ - lib/vagrant/commands/box.rb
179
239
  - lib/vagrant/commands/destroy.rb
180
240
  - lib/vagrant/commands/halt.rb
181
241
  - lib/vagrant/commands/init.rb
@@ -193,110 +253,48 @@ files:
193
253
  - lib/vagrant/downloaders/file.rb
194
254
  - lib/vagrant/downloaders/http.rb
195
255
  - lib/vagrant/environment.rb
256
+ - lib/vagrant/hosts/base.rb
257
+ - lib/vagrant/hosts/bsd.rb
258
+ - lib/vagrant/hosts/linux.rb
196
259
  - lib/vagrant/provisioners/base.rb
197
260
  - lib/vagrant/provisioners/chef.rb
198
261
  - lib/vagrant/provisioners/chef_server.rb
199
262
  - lib/vagrant/provisioners/chef_solo.rb
200
- - lib/vagrant/resource_logger.rb
201
263
  - lib/vagrant/ssh.rb
202
264
  - lib/vagrant/systems/base.rb
203
265
  - lib/vagrant/systems/linux.rb
204
- - lib/vagrant/util.rb
205
- - lib/vagrant/util/error_helper.rb
266
+ - lib/vagrant/util/busy.rb
206
267
  - lib/vagrant/util/glob_loader.rb
207
- - lib/vagrant/util/output_helper.rb
208
268
  - lib/vagrant/util/plain_logger.rb
209
269
  - lib/vagrant/util/platform.rb
270
+ - lib/vagrant/util/resource_logger.rb
210
271
  - lib/vagrant/util/stacked_proc_runner.rb
211
272
  - lib/vagrant/util/template_renderer.rb
212
273
  - lib/vagrant/util/translator.rb
274
+ - lib/vagrant/util.rb
275
+ - lib/vagrant/version.rb
213
276
  - lib/vagrant/vm.rb
214
- - templates/Vagrantfile.erb
277
+ - lib/vagrant.rb
215
278
  - templates/chef_server_client.erb
216
279
  - templates/chef_solo_solo.erb
217
280
  - templates/network_entry.erb
281
+ - templates/nfs/exports.erb
282
+ - templates/nfs/exports_linux.erb
218
283
  - templates/package_Vagrantfile.erb
219
284
  - templates/ssh_config.erb
220
285
  - templates/strings.yml
221
286
  - templates/unison/crontab_entry.erb
222
287
  - templates/unison/script.erb
223
- - test/test_helper.rb
224
- - test/vagrant/actions/base_test.rb
225
- - test/vagrant/actions/box/add_test.rb
226
- - test/vagrant/actions/box/destroy_test.rb
227
- - test/vagrant/actions/box/download_test.rb
228
- - test/vagrant/actions/box/unpackage_test.rb
229
- - test/vagrant/actions/box/verify_test.rb
230
- - test/vagrant/actions/collection_test.rb
231
- - test/vagrant/actions/runner_test.rb
232
- - test/vagrant/actions/vm/boot_test.rb
233
- - test/vagrant/actions/vm/customize_test.rb
234
- - test/vagrant/actions/vm/destroy_test.rb
235
- - test/vagrant/actions/vm/down_test.rb
236
- - test/vagrant/actions/vm/export_test.rb
237
- - test/vagrant/actions/vm/forward_ports_test.rb
238
- - test/vagrant/actions/vm/halt_test.rb
239
- - test/vagrant/actions/vm/import_test.rb
240
- - test/vagrant/actions/vm/move_hard_drive_test.rb
241
- - test/vagrant/actions/vm/network_test.rb
242
- - test/vagrant/actions/vm/package_test.rb
243
- - test/vagrant/actions/vm/provision_test.rb
244
- - test/vagrant/actions/vm/reload_test.rb
245
- - test/vagrant/actions/vm/resume_test.rb
246
- - test/vagrant/actions/vm/shared_folders_test.rb
247
- - test/vagrant/actions/vm/start_test.rb
248
- - test/vagrant/actions/vm/suspend_test.rb
249
- - test/vagrant/actions/vm/up_test.rb
250
- - test/vagrant/active_list_test.rb
251
- - test/vagrant/box_test.rb
252
- - test/vagrant/busy_test.rb
253
- - test/vagrant/command_test.rb
254
- - test/vagrant/commands/base_test.rb
255
- - test/vagrant/commands/box/add_test.rb
256
- - test/vagrant/commands/box/list_test.rb
257
- - test/vagrant/commands/box/remove_test.rb
258
- - test/vagrant/commands/destroy_test.rb
259
- - test/vagrant/commands/halt_test.rb
260
- - test/vagrant/commands/init_test.rb
261
- - test/vagrant/commands/package_test.rb
262
- - test/vagrant/commands/provision_test.rb
263
- - test/vagrant/commands/reload_test.rb
264
- - test/vagrant/commands/resume_test.rb
265
- - test/vagrant/commands/ssh_config_test.rb
266
- - test/vagrant/commands/ssh_test.rb
267
- - test/vagrant/commands/status_test.rb
268
- - test/vagrant/commands/suspend_test.rb
269
- - test/vagrant/commands/up_test.rb
270
- - test/vagrant/config_test.rb
271
- - test/vagrant/downloaders/base_test.rb
272
- - test/vagrant/downloaders/file_test.rb
273
- - test/vagrant/downloaders/http_test.rb
274
- - test/vagrant/environment_test.rb
275
- - test/vagrant/provisioners/base_test.rb
276
- - test/vagrant/provisioners/chef_server_test.rb
277
- - test/vagrant/provisioners/chef_solo_test.rb
278
- - test/vagrant/provisioners/chef_test.rb
279
- - test/vagrant/resource_logger_test.rb
280
- - test/vagrant/ssh_session_test.rb
281
- - test/vagrant/ssh_test.rb
282
- - test/vagrant/systems/linux_test.rb
283
- - test/vagrant/util/error_helper_test.rb
284
- - test/vagrant/util/output_helper_test.rb
285
- - test/vagrant/util/plain_logger_test.rb
286
- - test/vagrant/util/platform_test.rb
287
- - test/vagrant/util/stacked_proc_runner_test.rb
288
- - test/vagrant/util/template_renderer_test.rb
289
- - test/vagrant/util/translator_test.rb
290
- - test/vagrant/util_test.rb
291
- - test/vagrant/vm_test.rb
292
- - vagrant.gemspec
288
+ - templates/Vagrantfile.erb
289
+ - LICENSE
290
+ - README.md
293
291
  has_rdoc: true
294
- homepage: http://github.com/mitchellh/vagrant
292
+ homepage: http://vagrantup.com
295
293
  licenses: []
296
294
 
297
295
  post_install_message:
298
- rdoc_options:
299
- - --charset=UTF-8
296
+ rdoc_options: []
297
+
300
298
  require_paths:
301
299
  - lib
302
300
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -319,78 +317,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
319
317
  version: "0"
320
318
  requirements: []
321
319
 
322
- rubyforge_project:
320
+ rubyforge_project: vagrant
323
321
  rubygems_version: 1.3.7
324
322
  signing_key:
325
323
  specification_version: 3
326
- summary: Vagrant is a tool for building and distributing virtualized development environments.
327
- test_files:
328
- - test/test_helper.rb
329
- - test/vagrant/actions/base_test.rb
330
- - test/vagrant/actions/box/add_test.rb
331
- - test/vagrant/actions/box/destroy_test.rb
332
- - test/vagrant/actions/box/download_test.rb
333
- - test/vagrant/actions/box/unpackage_test.rb
334
- - test/vagrant/actions/box/verify_test.rb
335
- - test/vagrant/actions/collection_test.rb
336
- - test/vagrant/actions/runner_test.rb
337
- - test/vagrant/actions/vm/boot_test.rb
338
- - test/vagrant/actions/vm/customize_test.rb
339
- - test/vagrant/actions/vm/destroy_test.rb
340
- - test/vagrant/actions/vm/down_test.rb
341
- - test/vagrant/actions/vm/export_test.rb
342
- - test/vagrant/actions/vm/forward_ports_test.rb
343
- - test/vagrant/actions/vm/halt_test.rb
344
- - test/vagrant/actions/vm/import_test.rb
345
- - test/vagrant/actions/vm/move_hard_drive_test.rb
346
- - test/vagrant/actions/vm/network_test.rb
347
- - test/vagrant/actions/vm/package_test.rb
348
- - test/vagrant/actions/vm/provision_test.rb
349
- - test/vagrant/actions/vm/reload_test.rb
350
- - test/vagrant/actions/vm/resume_test.rb
351
- - test/vagrant/actions/vm/shared_folders_test.rb
352
- - test/vagrant/actions/vm/start_test.rb
353
- - test/vagrant/actions/vm/suspend_test.rb
354
- - test/vagrant/actions/vm/up_test.rb
355
- - test/vagrant/active_list_test.rb
356
- - test/vagrant/box_test.rb
357
- - test/vagrant/busy_test.rb
358
- - test/vagrant/command_test.rb
359
- - test/vagrant/commands/base_test.rb
360
- - test/vagrant/commands/box/add_test.rb
361
- - test/vagrant/commands/box/list_test.rb
362
- - test/vagrant/commands/box/remove_test.rb
363
- - test/vagrant/commands/destroy_test.rb
364
- - test/vagrant/commands/halt_test.rb
365
- - test/vagrant/commands/init_test.rb
366
- - test/vagrant/commands/package_test.rb
367
- - test/vagrant/commands/provision_test.rb
368
- - test/vagrant/commands/reload_test.rb
369
- - test/vagrant/commands/resume_test.rb
370
- - test/vagrant/commands/ssh_config_test.rb
371
- - test/vagrant/commands/ssh_test.rb
372
- - test/vagrant/commands/status_test.rb
373
- - test/vagrant/commands/suspend_test.rb
374
- - test/vagrant/commands/up_test.rb
375
- - test/vagrant/config_test.rb
376
- - test/vagrant/downloaders/base_test.rb
377
- - test/vagrant/downloaders/file_test.rb
378
- - test/vagrant/downloaders/http_test.rb
379
- - test/vagrant/environment_test.rb
380
- - test/vagrant/provisioners/base_test.rb
381
- - test/vagrant/provisioners/chef_server_test.rb
382
- - test/vagrant/provisioners/chef_solo_test.rb
383
- - test/vagrant/provisioners/chef_test.rb
384
- - test/vagrant/resource_logger_test.rb
385
- - test/vagrant/ssh_session_test.rb
386
- - test/vagrant/ssh_test.rb
387
- - test/vagrant/systems/linux_test.rb
388
- - test/vagrant/util/error_helper_test.rb
389
- - test/vagrant/util/output_helper_test.rb
390
- - test/vagrant/util/plain_logger_test.rb
391
- - test/vagrant/util/platform_test.rb
392
- - test/vagrant/util/stacked_proc_runner_test.rb
393
- - test/vagrant/util/template_renderer_test.rb
394
- - test/vagrant/util/translator_test.rb
395
- - test/vagrant/util_test.rb
396
- - test/vagrant/vm_test.rb
324
+ summary: Build and distribute virtualized development environments.
325
+ test_files: []
326
+