rvagrant 0.8.7.dev
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +25 -0
- data/.yardopts +1 -0
- data/CHANGELOG.md +386 -0
- data/Gemfile +21 -0
- data/LICENSE +21 -0
- data/README.md +61 -0
- data/Rakefile +11 -0
- data/bin/vagrant +28 -0
- data/config/default.rb +38 -0
- data/contrib/README.md +12 -0
- data/contrib/emacs/vagrant.el +8 -0
- data/contrib/vim/vagrantfile.vim +9 -0
- data/keys/README.md +17 -0
- data/keys/vagrant +27 -0
- data/keys/vagrant.ppk +26 -0
- data/keys/vagrant.pub +1 -0
- data/lib/vagrant.rb +44 -0
- data/lib/vagrant/action.rb +138 -0
- data/lib/vagrant/action/box.rb +11 -0
- data/lib/vagrant/action/box/destroy.rb +21 -0
- data/lib/vagrant/action/box/download.rb +72 -0
- data/lib/vagrant/action/box/package.rb +19 -0
- data/lib/vagrant/action/box/unpackage.rb +55 -0
- data/lib/vagrant/action/box/verify.rb +23 -0
- data/lib/vagrant/action/builder.rb +124 -0
- data/lib/vagrant/action/builtin.rb +108 -0
- data/lib/vagrant/action/env.rb +7 -0
- data/lib/vagrant/action/env/set.rb +18 -0
- data/lib/vagrant/action/environment.rb +50 -0
- data/lib/vagrant/action/general.rb +8 -0
- data/lib/vagrant/action/general/package.rb +113 -0
- data/lib/vagrant/action/general/validate.rb +19 -0
- data/lib/vagrant/action/vm.rb +34 -0
- data/lib/vagrant/action/vm/boot.rb +48 -0
- data/lib/vagrant/action/vm/check_accessible.rb +23 -0
- data/lib/vagrant/action/vm/check_box.rb +28 -0
- data/lib/vagrant/action/vm/check_guest_additions.rb +35 -0
- data/lib/vagrant/action/vm/clean_machine_folder.rb +43 -0
- data/lib/vagrant/action/vm/clear_forwarded_ports.rb +26 -0
- data/lib/vagrant/action/vm/clear_nfs_exports.rb +20 -0
- data/lib/vagrant/action/vm/clear_shared_folders.rb +27 -0
- data/lib/vagrant/action/vm/customize.rb +26 -0
- data/lib/vagrant/action/vm/destroy.rb +19 -0
- data/lib/vagrant/action/vm/destroy_unused_network_interfaces.rb +30 -0
- data/lib/vagrant/action/vm/discard_state.rb +22 -0
- data/lib/vagrant/action/vm/export.rb +52 -0
- data/lib/vagrant/action/vm/forward_ports.rb +133 -0
- data/lib/vagrant/action/vm/forward_ports_helpers.rb +28 -0
- data/lib/vagrant/action/vm/halt.rb +29 -0
- data/lib/vagrant/action/vm/host_name.rb +21 -0
- data/lib/vagrant/action/vm/import.rb +40 -0
- data/lib/vagrant/action/vm/match_mac_address.rb +26 -0
- data/lib/vagrant/action/vm/modify.rb +37 -0
- data/lib/vagrant/action/vm/network.rb +146 -0
- data/lib/vagrant/action/vm/nfs.rb +160 -0
- data/lib/vagrant/action/vm/nfs_helpers.rb +11 -0
- data/lib/vagrant/action/vm/package.rb +23 -0
- data/lib/vagrant/action/vm/package_vagrantfile.rb +33 -0
- data/lib/vagrant/action/vm/provision.rb +34 -0
- data/lib/vagrant/action/vm/provisioner_cleanup.rb +26 -0
- data/lib/vagrant/action/vm/resume.rb +20 -0
- data/lib/vagrant/action/vm/share_folders.rb +78 -0
- data/lib/vagrant/action/vm/suspend.rb +20 -0
- data/lib/vagrant/action/warden.rb +85 -0
- data/lib/vagrant/box.rb +90 -0
- data/lib/vagrant/box_collection.rb +53 -0
- data/lib/vagrant/cli.rb +55 -0
- data/lib/vagrant/command.rb +25 -0
- data/lib/vagrant/command/base.rb +106 -0
- data/lib/vagrant/command/box.rb +33 -0
- data/lib/vagrant/command/destroy.rb +17 -0
- data/lib/vagrant/command/group_base.rb +107 -0
- data/lib/vagrant/command/halt.rb +18 -0
- data/lib/vagrant/command/helpers.rb +33 -0
- data/lib/vagrant/command/init.rb +14 -0
- data/lib/vagrant/command/named_base.rb +14 -0
- data/lib/vagrant/command/package.rb +41 -0
- data/lib/vagrant/command/provision.rb +23 -0
- data/lib/vagrant/command/reload.rb +17 -0
- data/lib/vagrant/command/resume.rb +17 -0
- data/lib/vagrant/command/ssh.rb +49 -0
- data/lib/vagrant/command/ssh_config.rb +29 -0
- data/lib/vagrant/command/status.rb +31 -0
- data/lib/vagrant/command/suspend.rb +17 -0
- data/lib/vagrant/command/up.rb +19 -0
- data/lib/vagrant/command/upgrade_to_060.rb +45 -0
- data/lib/vagrant/command/version.rb +13 -0
- data/lib/vagrant/config.rb +123 -0
- data/lib/vagrant/config/base.rb +85 -0
- data/lib/vagrant/config/error_recorder.rb +19 -0
- data/lib/vagrant/config/nfs.rb +10 -0
- data/lib/vagrant/config/package.rb +9 -0
- data/lib/vagrant/config/ssh.rb +38 -0
- data/lib/vagrant/config/top.rb +61 -0
- data/lib/vagrant/config/vagrant.rb +17 -0
- data/lib/vagrant/config/vm.rb +148 -0
- data/lib/vagrant/config/vm/provisioner.rb +56 -0
- data/lib/vagrant/config/vm/sub_vm.rb +17 -0
- data/lib/vagrant/data_store.rb +70 -0
- data/lib/vagrant/downloaders.rb +7 -0
- data/lib/vagrant/downloaders/base.rb +23 -0
- data/lib/vagrant/downloaders/file.rb +22 -0
- data/lib/vagrant/downloaders/http.rb +70 -0
- data/lib/vagrant/environment.rb +516 -0
- data/lib/vagrant/errors.rb +352 -0
- data/lib/vagrant/hosts.rb +9 -0
- data/lib/vagrant/hosts/arch.rb +27 -0
- data/lib/vagrant/hosts/base.rb +76 -0
- data/lib/vagrant/hosts/bsd.rb +58 -0
- data/lib/vagrant/hosts/fedora.rb +11 -0
- data/lib/vagrant/hosts/linux.rb +69 -0
- data/lib/vagrant/plugin.rb +79 -0
- data/lib/vagrant/provisioners.rb +9 -0
- data/lib/vagrant/provisioners/base.rb +67 -0
- data/lib/vagrant/provisioners/chef.rb +155 -0
- data/lib/vagrant/provisioners/chef_client.rb +120 -0
- data/lib/vagrant/provisioners/chef_solo.rb +135 -0
- data/lib/vagrant/provisioners/puppet.rb +137 -0
- data/lib/vagrant/provisioners/puppet_server.rb +55 -0
- data/lib/vagrant/provisioners/shell.rb +96 -0
- data/lib/vagrant/ssh.rb +224 -0
- data/lib/vagrant/ssh/session.rb +136 -0
- data/lib/vagrant/systems.rb +13 -0
- data/lib/vagrant/systems/arch.rb +34 -0
- data/lib/vagrant/systems/base.rb +87 -0
- data/lib/vagrant/systems/debian.rb +36 -0
- data/lib/vagrant/systems/freebsd.rb +84 -0
- data/lib/vagrant/systems/gentoo.rb +27 -0
- data/lib/vagrant/systems/linux.rb +82 -0
- data/lib/vagrant/systems/linux/config.rb +21 -0
- data/lib/vagrant/systems/linux/error.rb +9 -0
- data/lib/vagrant/systems/redhat.rb +48 -0
- data/lib/vagrant/systems/solaris.rb +67 -0
- data/lib/vagrant/systems/suse.rb +9 -0
- data/lib/vagrant/systems/ubuntu.rb +17 -0
- data/lib/vagrant/test_helpers.rb +128 -0
- data/lib/vagrant/ui.rb +81 -0
- data/lib/vagrant/util.rb +13 -0
- data/lib/vagrant/util/busy.rb +59 -0
- data/lib/vagrant/util/counter.rb +24 -0
- data/lib/vagrant/util/hash_with_indifferent_access.rb +63 -0
- data/lib/vagrant/util/platform.rb +57 -0
- data/lib/vagrant/util/retryable.rb +25 -0
- data/lib/vagrant/util/safe_exec.rb +35 -0
- data/lib/vagrant/util/stacked_proc_runner.rb +35 -0
- data/lib/vagrant/util/template_renderer.rb +83 -0
- data/lib/vagrant/version.rb +6 -0
- data/lib/vagrant/vm.rb +181 -0
- data/templates/chef_server_client.erb +32 -0
- data/templates/chef_solo_solo.erb +23 -0
- data/templates/commands/init/Vagrantfile.erb +86 -0
- data/templates/config/validation_failed.erb +7 -0
- data/templates/locales/en.yml +556 -0
- data/templates/network_entry_arch.erb +9 -0
- data/templates/network_entry_debian.erb +8 -0
- data/templates/network_entry_gentoo.erb +5 -0
- data/templates/network_entry_redhat.erb +9 -0
- data/templates/nfs/exports.erb +5 -0
- data/templates/nfs/exports_linux.erb +5 -0
- data/templates/package_Vagrantfile.erb +11 -0
- data/templates/ssh_config.erb +15 -0
- data/test/unit/locales/en.yml +8 -0
- data/test/unit/test_helper.rb +28 -0
- data/test/unit/vagrant/action/box/destroy_test.rb +18 -0
- data/test/unit/vagrant/action/box/download_test.rb +125 -0
- data/test/unit/vagrant/action/box/package_test.rb +25 -0
- data/test/unit/vagrant/action/box/unpackage_test.rb +84 -0
- data/test/unit/vagrant/action/box/verify_test.rb +30 -0
- data/test/unit/vagrant/action/builder_test.rb +207 -0
- data/test/unit/vagrant/action/env/set_test.rb +24 -0
- data/test/unit/vagrant/action/environment_test.rb +27 -0
- data/test/unit/vagrant/action/general/package_test.rb +268 -0
- data/test/unit/vagrant/action/general/validate_test.rb +31 -0
- data/test/unit/vagrant/action/vm/boot_test.rb +66 -0
- data/test/unit/vagrant/action/vm/check_accessible_test.rb +61 -0
- data/test/unit/vagrant/action/vm/check_box_test.rb +56 -0
- data/test/unit/vagrant/action/vm/check_guest_additions_test.rb +9 -0
- data/test/unit/vagrant/action/vm/clean_machine_folder_test.rb +84 -0
- data/test/unit/vagrant/action/vm/clear_forwarded_ports_test.rb +52 -0
- data/test/unit/vagrant/action/vm/clear_nfs_exports_test.rb +22 -0
- data/test/unit/vagrant/action/vm/clear_shared_folders_test.rb +40 -0
- data/test/unit/vagrant/action/vm/customize_test.rb +37 -0
- data/test/unit/vagrant/action/vm/destroy_test.rb +25 -0
- data/test/unit/vagrant/action/vm/destroy_unused_network_interfaces_test.rb +49 -0
- data/test/unit/vagrant/action/vm/discard_state_test.rb +45 -0
- data/test/unit/vagrant/action/vm/export_test.rb +107 -0
- data/test/unit/vagrant/action/vm/forward_ports_helpers_test.rb +77 -0
- data/test/unit/vagrant/action/vm/forward_ports_test.rb +213 -0
- data/test/unit/vagrant/action/vm/halt_test.rb +79 -0
- data/test/unit/vagrant/action/vm/host_name_test.rb +36 -0
- data/test/unit/vagrant/action/vm/import_test.rb +66 -0
- data/test/unit/vagrant/action/vm/match_mac_address_test.rb +40 -0
- data/test/unit/vagrant/action/vm/modify_test.rb +38 -0
- data/test/unit/vagrant/action/vm/network_test.rb +286 -0
- data/test/unit/vagrant/action/vm/nfs_helpers_test.rb +26 -0
- data/test/unit/vagrant/action/vm/nfs_test.rb +260 -0
- data/test/unit/vagrant/action/vm/package_test.rb +25 -0
- data/test/unit/vagrant/action/vm/package_vagrantfile_test.rb +46 -0
- data/test/unit/vagrant/action/vm/provision_test.rb +65 -0
- data/test/unit/vagrant/action/vm/provisioner_cleanup_test.rb +56 -0
- data/test/unit/vagrant/action/vm/resume_test.rb +35 -0
- data/test/unit/vagrant/action/vm/share_folders_test.rb +144 -0
- data/test/unit/vagrant/action/vm/suspend_test.rb +35 -0
- data/test/unit/vagrant/action/warden_test.rb +125 -0
- data/test/unit/vagrant/action_test.rb +89 -0
- data/test/unit/vagrant/box_collection_test.rb +45 -0
- data/test/unit/vagrant/box_test.rb +74 -0
- data/test/unit/vagrant/cli_test.rb +35 -0
- data/test/unit/vagrant/command/base_test.rb +23 -0
- data/test/unit/vagrant/command/group_base_test.rb +15 -0
- data/test/unit/vagrant/command/helpers_test.rb +88 -0
- data/test/unit/vagrant/command/package_test.rb +27 -0
- data/test/unit/vagrant/config/base_test.rb +52 -0
- data/test/unit/vagrant/config/error_recorder_test.rb +18 -0
- data/test/unit/vagrant/config/ssh_test.rb +12 -0
- data/test/unit/vagrant/config/vagrant_test.rb +35 -0
- data/test/unit/vagrant/config/vm/provisioner_test.rb +92 -0
- data/test/unit/vagrant/config/vm_test.rb +56 -0
- data/test/unit/vagrant/config_test.rb +162 -0
- data/test/unit/vagrant/data_store_test.rb +77 -0
- data/test/unit/vagrant/downloaders/base_test.rb +28 -0
- data/test/unit/vagrant/downloaders/file_test.rb +48 -0
- data/test/unit/vagrant/downloaders/http_test.rb +82 -0
- data/test/unit/vagrant/environment_test.rb +598 -0
- data/test/unit/vagrant/errors_test.rb +42 -0
- data/test/unit/vagrant/hosts/base_test.rb +46 -0
- data/test/unit/vagrant/hosts/bsd_test.rb +53 -0
- data/test/unit/vagrant/hosts/linux_test.rb +54 -0
- data/test/unit/vagrant/plugin_test.rb +9 -0
- data/test/unit/vagrant/provisioners/base_test.rb +63 -0
- data/test/unit/vagrant/provisioners/chef_client_test.rb +190 -0
- data/test/unit/vagrant/provisioners/chef_solo_test.rb +114 -0
- data/test/unit/vagrant/provisioners/chef_test.rb +202 -0
- data/test/unit/vagrant/provisioners/puppet_server_test.rb +68 -0
- data/test/unit/vagrant/provisioners/puppet_test.rb +182 -0
- data/test/unit/vagrant/provisioners/shell_test.rb +79 -0
- data/test/unit/vagrant/ssh/session_test.rb +40 -0
- data/test/unit/vagrant/ssh_test.rb +307 -0
- data/test/unit/vagrant/systems/base_test.rb +18 -0
- data/test/unit/vagrant/systems/linux_test.rb +104 -0
- data/test/unit/vagrant/ui_test.rb +29 -0
- data/test/unit/vagrant/util/busy_test.rb +106 -0
- data/test/unit/vagrant/util/counter_test.rb +29 -0
- data/test/unit/vagrant/util/hash_with_indifferent_access_test.rb +39 -0
- data/test/unit/vagrant/util/platform_test.rb +18 -0
- data/test/unit/vagrant/util/retryable_test.rb +50 -0
- data/test/unit/vagrant/util/stacked_proc_runner_test.rb +43 -0
- data/test/unit/vagrant/util/template_renderer_test.rb +145 -0
- data/test/unit/vagrant/vm_test.rb +300 -0
- data/vagrant.gemspec +35 -0
- metadata +431 -0
@@ -0,0 +1,300 @@
|
|
1
|
+
require "test_helper"
|
2
|
+
|
3
|
+
class VMTest < Test::Unit::TestCase
|
4
|
+
setup do
|
5
|
+
@env = vagrant_env
|
6
|
+
end
|
7
|
+
|
8
|
+
context "finding a VM" do
|
9
|
+
should "return return an uncreated VM object if the VM is not found" do
|
10
|
+
VirtualBox::VM.expects(:find).returns(nil)
|
11
|
+
result = Vagrant::VM.find("foo")
|
12
|
+
assert result.is_a?(Vagrant::VM)
|
13
|
+
assert !result.created?
|
14
|
+
end
|
15
|
+
|
16
|
+
should "return a Vagrant::VM object for that VM if found" do
|
17
|
+
VirtualBox::VM.expects(:find).with("foo").returns("bar")
|
18
|
+
result = Vagrant::VM.find("foo", @env)
|
19
|
+
assert result.is_a?(Vagrant::VM)
|
20
|
+
assert_equal "bar", result.vm
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
context "vagrant VM instance" do
|
25
|
+
setup do
|
26
|
+
@vm_name = "foo"
|
27
|
+
@mock_vm = mock("vm")
|
28
|
+
@mock_vm.stubs(:running?).returns(false)
|
29
|
+
@vm = Vagrant::VM.new(:env => @env, :vm => @mock_vm, :name => @vm_name)
|
30
|
+
@mock_vm.stubs(:uuid).returns("foo")
|
31
|
+
end
|
32
|
+
|
33
|
+
context "checking if created" do
|
34
|
+
should "return true if the VM object is not nil" do
|
35
|
+
@vm.stubs(:vm).returns(:foo)
|
36
|
+
assert @vm.created?
|
37
|
+
end
|
38
|
+
|
39
|
+
should "return false if the VM object is nil" do
|
40
|
+
@vm.stubs(:vm).returns(nil)
|
41
|
+
assert !@vm.created?
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
context "setting the VM" do
|
46
|
+
setup do
|
47
|
+
@raw_vm = mock("vm")
|
48
|
+
@raw_vm.stubs(:uuid).returns("foobar")
|
49
|
+
end
|
50
|
+
|
51
|
+
should "set the VM" do
|
52
|
+
@vm.vm = @raw_vm
|
53
|
+
assert_equal @raw_vm, @vm.vm
|
54
|
+
end
|
55
|
+
|
56
|
+
should "add the VM to the active list" do
|
57
|
+
assert @env.local_data.empty?
|
58
|
+
@vm.vm = @raw_vm
|
59
|
+
assert_equal @raw_vm.uuid, @env.local_data[:active][@vm.name.to_s]
|
60
|
+
end
|
61
|
+
|
62
|
+
should "remove the VM from the active list if nil is given" do
|
63
|
+
@env.local_data[:active] = { @vm.name.to_s => "foo" }
|
64
|
+
|
65
|
+
assert @env.local_data[:active].has_key?(@vm.name.to_s) # sanity
|
66
|
+
@vm.vm = nil
|
67
|
+
|
68
|
+
# This becomes empty because vm= will commit the local data which
|
69
|
+
# actually prunes out the empty values.
|
70
|
+
assert @env.local_data.empty?
|
71
|
+
end
|
72
|
+
end
|
73
|
+
|
74
|
+
context "accessing the SSH object" do
|
75
|
+
setup do
|
76
|
+
# Reset this to nil to force the reload
|
77
|
+
@vm.instance_variable_set(:@ssh, nil)
|
78
|
+
|
79
|
+
@ssh = mock("ssh")
|
80
|
+
Vagrant::SSH.stubs(:new).returns(@ssh)
|
81
|
+
end
|
82
|
+
|
83
|
+
should "load it the first time, and only load it once" do
|
84
|
+
Vagrant::SSH.expects(:new).with(@vm.env).once.returns(@ssh)
|
85
|
+
@vm.ssh
|
86
|
+
@vm.ssh
|
87
|
+
@vm.ssh
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
context "loading associated system" do
|
92
|
+
should "error and exit if system is not specified" do
|
93
|
+
@vm.env.config.vm.system = nil
|
94
|
+
|
95
|
+
assert_raises(Vagrant::Errors::VMSystemError) {
|
96
|
+
@vm.load_system!
|
97
|
+
}
|
98
|
+
end
|
99
|
+
|
100
|
+
should "load the given system if specified" do
|
101
|
+
fake_class = Class.new(Vagrant::Systems::Base)
|
102
|
+
|
103
|
+
assert_nothing_raised { @vm.load_system!(fake_class) }
|
104
|
+
assert @vm.system.is_a?(fake_class)
|
105
|
+
end
|
106
|
+
|
107
|
+
context "with a class" do
|
108
|
+
should "initialize class if given" do
|
109
|
+
@vm.env.config.vm.system = Vagrant::Systems::Linux
|
110
|
+
|
111
|
+
assert_nothing_raised { @vm.load_system!}
|
112
|
+
assert @vm.system.is_a?(Vagrant::Systems::Linux)
|
113
|
+
end
|
114
|
+
|
115
|
+
should "raise error if class has invalid parent" do
|
116
|
+
@vm.env.config.vm.system = Class.new
|
117
|
+
assert_raises(Vagrant::Errors::VMSystemError) {
|
118
|
+
@vm.load_system!
|
119
|
+
}
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
123
|
+
context "with a symbol" do
|
124
|
+
should "initialize proper symbols" do
|
125
|
+
valid = {
|
126
|
+
:linux => Vagrant::Systems::Linux,
|
127
|
+
:solaris => Vagrant::Systems::Solaris
|
128
|
+
}
|
129
|
+
|
130
|
+
valid.each do |symbol, klass|
|
131
|
+
@vm.env.config.vm.system = symbol
|
132
|
+
|
133
|
+
assert_nothing_raised { @vm.load_system! }
|
134
|
+
assert @vm.system.is_a?(klass)
|
135
|
+
assert_equal @vm, @vm.system.vm
|
136
|
+
end
|
137
|
+
end
|
138
|
+
|
139
|
+
should "error and exit with invalid symbol" do
|
140
|
+
@vm.env.config.vm.system = :shall_never_exist
|
141
|
+
|
142
|
+
assert_raises(Vagrant::Errors::VMSystemError) {
|
143
|
+
@vm.load_system!
|
144
|
+
}
|
145
|
+
end
|
146
|
+
end
|
147
|
+
|
148
|
+
context "loading the distro" do
|
149
|
+
setup do
|
150
|
+
@vm.vm.stubs(:running?).returns(true)
|
151
|
+
end
|
152
|
+
|
153
|
+
should "not replace the distro if it is nil" do
|
154
|
+
@vm.env.config.vm.system = Class.new(Vagrant::Systems::Base)
|
155
|
+
|
156
|
+
@vm.load_system!
|
157
|
+
assert @vm.system.is_a?(@vm.env.config.vm.system)
|
158
|
+
end
|
159
|
+
|
160
|
+
should "replace the distro if it is not nil" do
|
161
|
+
@vm.env.config.vm.system = Class.new(Vagrant::Systems::Base) do
|
162
|
+
def distro_dispatch
|
163
|
+
:linux
|
164
|
+
end
|
165
|
+
end
|
166
|
+
|
167
|
+
@vm.load_system!
|
168
|
+
assert @vm.system.is_a?(Vagrant::Systems::Linux)
|
169
|
+
end
|
170
|
+
end
|
171
|
+
end
|
172
|
+
|
173
|
+
context "uuid" do
|
174
|
+
should "call UUID on VM object" do
|
175
|
+
uuid = mock("uuid")
|
176
|
+
@mock_vm.expects(:uuid).once.returns(uuid)
|
177
|
+
assert_equal uuid, @vm.uuid
|
178
|
+
end
|
179
|
+
|
180
|
+
should "return nil if vm is nil" do
|
181
|
+
@vm.expects(:vm).returns(nil)
|
182
|
+
assert @vm.uuid.nil?
|
183
|
+
end
|
184
|
+
end
|
185
|
+
|
186
|
+
context "reloading" do
|
187
|
+
should "load the same VM and set it" do
|
188
|
+
new_vm = mock("vm")
|
189
|
+
VirtualBox::VM.expects(:find).with(@mock_vm.uuid).returns(new_vm)
|
190
|
+
@vm.reload!
|
191
|
+
assert_equal new_vm, @vm.vm
|
192
|
+
end
|
193
|
+
end
|
194
|
+
|
195
|
+
context "packaging" do
|
196
|
+
should "execute the package action" do
|
197
|
+
@vm.env.actions.expects(:run).once.with() do |action, options|
|
198
|
+
assert_equal :package, action
|
199
|
+
assert_equal :bar, options[:foo]
|
200
|
+
true
|
201
|
+
end
|
202
|
+
|
203
|
+
@vm.package(:foo => :bar)
|
204
|
+
end
|
205
|
+
end
|
206
|
+
|
207
|
+
context "upping" do
|
208
|
+
should "execute the up action" do
|
209
|
+
@vm.env.actions.expects(:run).with(:up, nil).once
|
210
|
+
@vm.up
|
211
|
+
end
|
212
|
+
|
213
|
+
should "forward options to the action sequence" do
|
214
|
+
@vm.env.actions.expects(:run).with(:up, :foo => :bar).once
|
215
|
+
@vm.up(:foo => :bar)
|
216
|
+
end
|
217
|
+
end
|
218
|
+
|
219
|
+
context "halting" do
|
220
|
+
should "execute the halt action" do
|
221
|
+
@vm.env.actions.expects(:run).with(:halt, :foo => :bar).once
|
222
|
+
@vm.halt({:foo => :bar})
|
223
|
+
end
|
224
|
+
end
|
225
|
+
|
226
|
+
context "reloading action" do
|
227
|
+
should "execute the reload action" do
|
228
|
+
@vm.env.actions.expects(:run).with(:reload).once
|
229
|
+
@vm.reload
|
230
|
+
end
|
231
|
+
end
|
232
|
+
|
233
|
+
context "provisioning" do
|
234
|
+
should "execute the provision action" do
|
235
|
+
@vm.env.actions.expects(:run).with(:provision).once
|
236
|
+
@vm.provision
|
237
|
+
end
|
238
|
+
end
|
239
|
+
|
240
|
+
context "destroying" do
|
241
|
+
should "execute the destroy action" do
|
242
|
+
@vm.env.actions.expects(:run).with(:destroy).once
|
243
|
+
@vm.destroy
|
244
|
+
end
|
245
|
+
end
|
246
|
+
|
247
|
+
context "suspending" do
|
248
|
+
should "execute the suspend action" do
|
249
|
+
@vm.env.actions.expects(:run).with(:suspend).once
|
250
|
+
@vm.suspend
|
251
|
+
end
|
252
|
+
end
|
253
|
+
|
254
|
+
context "resuming" do
|
255
|
+
should "execute the resume action" do
|
256
|
+
@vm.env.actions.expects(:run).with(:resume).once
|
257
|
+
@vm.resume
|
258
|
+
end
|
259
|
+
end
|
260
|
+
|
261
|
+
context "starting" do
|
262
|
+
setup do
|
263
|
+
@mock_vm.stubs(:running?).returns(false)
|
264
|
+
@mock_vm.stubs(:saved?).returns(false)
|
265
|
+
@mock_vm.stubs(:accessible?).returns(true)
|
266
|
+
end
|
267
|
+
|
268
|
+
should "not do anything if the VM is already running" do
|
269
|
+
@mock_vm.stubs(:running?).returns(true)
|
270
|
+
@vm.expects(:execute!).never
|
271
|
+
@vm.start
|
272
|
+
end
|
273
|
+
|
274
|
+
should "execute the resume action if saved" do
|
275
|
+
@mock_vm.expects(:saved?).returns(true)
|
276
|
+
@vm.expects(:resume).once
|
277
|
+
@vm.env.actions.expects(:run).with(:start, nil).never
|
278
|
+
@vm.start
|
279
|
+
end
|
280
|
+
|
281
|
+
should "execute the start action" do
|
282
|
+
@vm.env.actions.expects(:run).with(:start, nil).once
|
283
|
+
@vm.start
|
284
|
+
end
|
285
|
+
|
286
|
+
should "forward options to the action sequence" do
|
287
|
+
@vm.env.actions.expects(:run).with(:start, :foo => :bar).once
|
288
|
+
@vm.start(:foo => :bar)
|
289
|
+
end
|
290
|
+
|
291
|
+
should "raise an exception if the VM is not accessible" do
|
292
|
+
@mock_vm.stubs(:accessible?).returns(false)
|
293
|
+
|
294
|
+
assert_raises(Vagrant::Errors::VMInaccessible) {
|
295
|
+
@vm.start
|
296
|
+
}
|
297
|
+
end
|
298
|
+
end
|
299
|
+
end
|
300
|
+
end
|
data/vagrant.gemspec
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
$:.unshift File.expand_path("../lib", __FILE__)
|
2
|
+
require "vagrant/version"
|
3
|
+
|
4
|
+
Gem::Specification.new do |s|
|
5
|
+
s.name = "rvagrant"
|
6
|
+
s.version = Vagrant::VERSION
|
7
|
+
s.platform = Gem::Platform::RUBY
|
8
|
+
s.authors = ["Mitchell Hashimoto", "John Bender"]
|
9
|
+
s.email = ["mitchell.hashimoto@gmail.com", "john.m.bender@gmail.com"]
|
10
|
+
s.homepage = "http://vagrantup.com"
|
11
|
+
s.summary = "Build and distribute virtualized development environments."
|
12
|
+
s.description = "Vagrant is a tool for building and distributing virtualized development environments."
|
13
|
+
|
14
|
+
s.required_rubygems_version = ">= 1.3.6"
|
15
|
+
s.rubyforge_project = "vagrant"
|
16
|
+
|
17
|
+
s.add_dependency "archive-tar-minitar", "= 0.5.2"
|
18
|
+
s.add_dependency "erubis", "~> 2.7.0"
|
19
|
+
s.add_dependency "json", "~> 1.5.1"
|
20
|
+
s.add_dependency "net-ssh", "~> 2.1.4"
|
21
|
+
s.add_dependency "net-scp", "~> 1.0.4"
|
22
|
+
s.add_dependency "i18n", "~> 0.6.0"
|
23
|
+
s.add_dependency "thor", "~> 0.14.6"
|
24
|
+
s.add_dependency "virtualbox", "~> 0.9.1"
|
25
|
+
|
26
|
+
s.add_development_dependency "rake"
|
27
|
+
s.add_development_dependency "contest", ">= 0.1.2"
|
28
|
+
s.add_development_dependency "mocha"
|
29
|
+
s.add_development_dependency "ruby-debug"
|
30
|
+
|
31
|
+
s.files = `git ls-files`.split("\n")
|
32
|
+
s.executables = `git ls-files`.split("\n").map{|f| f =~ /^bin\/(.*)/ ? $1 : nil}.compact
|
33
|
+
s.require_path = 'lib'
|
34
|
+
end
|
35
|
+
|
metadata
ADDED
@@ -0,0 +1,431 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: rvagrant
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.8.7.dev
|
5
|
+
prerelease: 6
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Mitchell Hashimoto
|
9
|
+
- John Bender
|
10
|
+
autorequire:
|
11
|
+
bindir: bin
|
12
|
+
cert_chain: []
|
13
|
+
date: 2011-09-02 00:00:00.000000000Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: archive-tar-minitar
|
17
|
+
requirement: &14603960 !ruby/object:Gem::Requirement
|
18
|
+
none: false
|
19
|
+
requirements:
|
20
|
+
- - =
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 0.5.2
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: *14603960
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: erubis
|
28
|
+
requirement: &14603380 !ruby/object:Gem::Requirement
|
29
|
+
none: false
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 2.7.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: *14603380
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: json
|
39
|
+
requirement: &14602800 !ruby/object:Gem::Requirement
|
40
|
+
none: false
|
41
|
+
requirements:
|
42
|
+
- - ~>
|
43
|
+
- !ruby/object:Gem::Version
|
44
|
+
version: 1.5.1
|
45
|
+
type: :runtime
|
46
|
+
prerelease: false
|
47
|
+
version_requirements: *14602800
|
48
|
+
- !ruby/object:Gem::Dependency
|
49
|
+
name: net-ssh
|
50
|
+
requirement: &14602220 !ruby/object:Gem::Requirement
|
51
|
+
none: false
|
52
|
+
requirements:
|
53
|
+
- - ~>
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: 2.1.4
|
56
|
+
type: :runtime
|
57
|
+
prerelease: false
|
58
|
+
version_requirements: *14602220
|
59
|
+
- !ruby/object:Gem::Dependency
|
60
|
+
name: net-scp
|
61
|
+
requirement: &14601640 !ruby/object:Gem::Requirement
|
62
|
+
none: false
|
63
|
+
requirements:
|
64
|
+
- - ~>
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: 1.0.4
|
67
|
+
type: :runtime
|
68
|
+
prerelease: false
|
69
|
+
version_requirements: *14601640
|
70
|
+
- !ruby/object:Gem::Dependency
|
71
|
+
name: i18n
|
72
|
+
requirement: &14601060 !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: 0.6.0
|
78
|
+
type: :runtime
|
79
|
+
prerelease: false
|
80
|
+
version_requirements: *14601060
|
81
|
+
- !ruby/object:Gem::Dependency
|
82
|
+
name: thor
|
83
|
+
requirement: &14600480 !ruby/object:Gem::Requirement
|
84
|
+
none: false
|
85
|
+
requirements:
|
86
|
+
- - ~>
|
87
|
+
- !ruby/object:Gem::Version
|
88
|
+
version: 0.14.6
|
89
|
+
type: :runtime
|
90
|
+
prerelease: false
|
91
|
+
version_requirements: *14600480
|
92
|
+
- !ruby/object:Gem::Dependency
|
93
|
+
name: virtualbox
|
94
|
+
requirement: &14552000 !ruby/object:Gem::Requirement
|
95
|
+
none: false
|
96
|
+
requirements:
|
97
|
+
- - ~>
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
version: 0.9.1
|
100
|
+
type: :runtime
|
101
|
+
prerelease: false
|
102
|
+
version_requirements: *14552000
|
103
|
+
- !ruby/object:Gem::Dependency
|
104
|
+
name: rake
|
105
|
+
requirement: &14551500 !ruby/object:Gem::Requirement
|
106
|
+
none: false
|
107
|
+
requirements:
|
108
|
+
- - ! '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
type: :development
|
112
|
+
prerelease: false
|
113
|
+
version_requirements: *14551500
|
114
|
+
- !ruby/object:Gem::Dependency
|
115
|
+
name: contest
|
116
|
+
requirement: &14550840 !ruby/object:Gem::Requirement
|
117
|
+
none: false
|
118
|
+
requirements:
|
119
|
+
- - ! '>='
|
120
|
+
- !ruby/object:Gem::Version
|
121
|
+
version: 0.1.2
|
122
|
+
type: :development
|
123
|
+
prerelease: false
|
124
|
+
version_requirements: *14550840
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: mocha
|
127
|
+
requirement: &14550300 !ruby/object:Gem::Requirement
|
128
|
+
none: false
|
129
|
+
requirements:
|
130
|
+
- - ! '>='
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: '0'
|
133
|
+
type: :development
|
134
|
+
prerelease: false
|
135
|
+
version_requirements: *14550300
|
136
|
+
- !ruby/object:Gem::Dependency
|
137
|
+
name: ruby-debug
|
138
|
+
requirement: &14549720 !ruby/object:Gem::Requirement
|
139
|
+
none: false
|
140
|
+
requirements:
|
141
|
+
- - ! '>='
|
142
|
+
- !ruby/object:Gem::Version
|
143
|
+
version: '0'
|
144
|
+
type: :development
|
145
|
+
prerelease: false
|
146
|
+
version_requirements: *14549720
|
147
|
+
description: Vagrant is a tool for building and distributing virtualized development
|
148
|
+
environments.
|
149
|
+
email:
|
150
|
+
- mitchell.hashimoto@gmail.com
|
151
|
+
- john.m.bender@gmail.com
|
152
|
+
executables:
|
153
|
+
- vagrant
|
154
|
+
extensions: []
|
155
|
+
extra_rdoc_files: []
|
156
|
+
files:
|
157
|
+
- .gitignore
|
158
|
+
- .yardopts
|
159
|
+
- CHANGELOG.md
|
160
|
+
- Gemfile
|
161
|
+
- LICENSE
|
162
|
+
- README.md
|
163
|
+
- Rakefile
|
164
|
+
- bin/vagrant
|
165
|
+
- config/default.rb
|
166
|
+
- contrib/README.md
|
167
|
+
- contrib/emacs/vagrant.el
|
168
|
+
- contrib/vim/vagrantfile.vim
|
169
|
+
- keys/README.md
|
170
|
+
- keys/vagrant
|
171
|
+
- keys/vagrant.ppk
|
172
|
+
- keys/vagrant.pub
|
173
|
+
- lib/vagrant.rb
|
174
|
+
- lib/vagrant/action.rb
|
175
|
+
- lib/vagrant/action/box.rb
|
176
|
+
- lib/vagrant/action/box/destroy.rb
|
177
|
+
- lib/vagrant/action/box/download.rb
|
178
|
+
- lib/vagrant/action/box/package.rb
|
179
|
+
- lib/vagrant/action/box/unpackage.rb
|
180
|
+
- lib/vagrant/action/box/verify.rb
|
181
|
+
- lib/vagrant/action/builder.rb
|
182
|
+
- lib/vagrant/action/builtin.rb
|
183
|
+
- lib/vagrant/action/env.rb
|
184
|
+
- lib/vagrant/action/env/set.rb
|
185
|
+
- lib/vagrant/action/environment.rb
|
186
|
+
- lib/vagrant/action/general.rb
|
187
|
+
- lib/vagrant/action/general/package.rb
|
188
|
+
- lib/vagrant/action/general/validate.rb
|
189
|
+
- lib/vagrant/action/vm.rb
|
190
|
+
- lib/vagrant/action/vm/boot.rb
|
191
|
+
- lib/vagrant/action/vm/check_accessible.rb
|
192
|
+
- lib/vagrant/action/vm/check_box.rb
|
193
|
+
- lib/vagrant/action/vm/check_guest_additions.rb
|
194
|
+
- lib/vagrant/action/vm/clean_machine_folder.rb
|
195
|
+
- lib/vagrant/action/vm/clear_forwarded_ports.rb
|
196
|
+
- lib/vagrant/action/vm/clear_nfs_exports.rb
|
197
|
+
- lib/vagrant/action/vm/clear_shared_folders.rb
|
198
|
+
- lib/vagrant/action/vm/customize.rb
|
199
|
+
- lib/vagrant/action/vm/destroy.rb
|
200
|
+
- lib/vagrant/action/vm/destroy_unused_network_interfaces.rb
|
201
|
+
- lib/vagrant/action/vm/discard_state.rb
|
202
|
+
- lib/vagrant/action/vm/export.rb
|
203
|
+
- lib/vagrant/action/vm/forward_ports.rb
|
204
|
+
- lib/vagrant/action/vm/forward_ports_helpers.rb
|
205
|
+
- lib/vagrant/action/vm/halt.rb
|
206
|
+
- lib/vagrant/action/vm/host_name.rb
|
207
|
+
- lib/vagrant/action/vm/import.rb
|
208
|
+
- lib/vagrant/action/vm/match_mac_address.rb
|
209
|
+
- lib/vagrant/action/vm/modify.rb
|
210
|
+
- lib/vagrant/action/vm/network.rb
|
211
|
+
- lib/vagrant/action/vm/nfs.rb
|
212
|
+
- lib/vagrant/action/vm/nfs_helpers.rb
|
213
|
+
- lib/vagrant/action/vm/package.rb
|
214
|
+
- lib/vagrant/action/vm/package_vagrantfile.rb
|
215
|
+
- lib/vagrant/action/vm/provision.rb
|
216
|
+
- lib/vagrant/action/vm/provisioner_cleanup.rb
|
217
|
+
- lib/vagrant/action/vm/resume.rb
|
218
|
+
- lib/vagrant/action/vm/share_folders.rb
|
219
|
+
- lib/vagrant/action/vm/suspend.rb
|
220
|
+
- lib/vagrant/action/warden.rb
|
221
|
+
- lib/vagrant/box.rb
|
222
|
+
- lib/vagrant/box_collection.rb
|
223
|
+
- lib/vagrant/cli.rb
|
224
|
+
- lib/vagrant/command.rb
|
225
|
+
- lib/vagrant/command/base.rb
|
226
|
+
- lib/vagrant/command/box.rb
|
227
|
+
- lib/vagrant/command/destroy.rb
|
228
|
+
- lib/vagrant/command/group_base.rb
|
229
|
+
- lib/vagrant/command/halt.rb
|
230
|
+
- lib/vagrant/command/helpers.rb
|
231
|
+
- lib/vagrant/command/init.rb
|
232
|
+
- lib/vagrant/command/named_base.rb
|
233
|
+
- lib/vagrant/command/package.rb
|
234
|
+
- lib/vagrant/command/provision.rb
|
235
|
+
- lib/vagrant/command/reload.rb
|
236
|
+
- lib/vagrant/command/resume.rb
|
237
|
+
- lib/vagrant/command/ssh.rb
|
238
|
+
- lib/vagrant/command/ssh_config.rb
|
239
|
+
- lib/vagrant/command/status.rb
|
240
|
+
- lib/vagrant/command/suspend.rb
|
241
|
+
- lib/vagrant/command/up.rb
|
242
|
+
- lib/vagrant/command/upgrade_to_060.rb
|
243
|
+
- lib/vagrant/command/version.rb
|
244
|
+
- lib/vagrant/config.rb
|
245
|
+
- lib/vagrant/config/base.rb
|
246
|
+
- lib/vagrant/config/error_recorder.rb
|
247
|
+
- lib/vagrant/config/nfs.rb
|
248
|
+
- lib/vagrant/config/package.rb
|
249
|
+
- lib/vagrant/config/ssh.rb
|
250
|
+
- lib/vagrant/config/top.rb
|
251
|
+
- lib/vagrant/config/vagrant.rb
|
252
|
+
- lib/vagrant/config/vm.rb
|
253
|
+
- lib/vagrant/config/vm/provisioner.rb
|
254
|
+
- lib/vagrant/config/vm/sub_vm.rb
|
255
|
+
- lib/vagrant/data_store.rb
|
256
|
+
- lib/vagrant/downloaders.rb
|
257
|
+
- lib/vagrant/downloaders/base.rb
|
258
|
+
- lib/vagrant/downloaders/file.rb
|
259
|
+
- lib/vagrant/downloaders/http.rb
|
260
|
+
- lib/vagrant/environment.rb
|
261
|
+
- lib/vagrant/errors.rb
|
262
|
+
- lib/vagrant/hosts.rb
|
263
|
+
- lib/vagrant/hosts/arch.rb
|
264
|
+
- lib/vagrant/hosts/base.rb
|
265
|
+
- lib/vagrant/hosts/bsd.rb
|
266
|
+
- lib/vagrant/hosts/fedora.rb
|
267
|
+
- lib/vagrant/hosts/linux.rb
|
268
|
+
- lib/vagrant/plugin.rb
|
269
|
+
- lib/vagrant/provisioners.rb
|
270
|
+
- lib/vagrant/provisioners/base.rb
|
271
|
+
- lib/vagrant/provisioners/chef.rb
|
272
|
+
- lib/vagrant/provisioners/chef_client.rb
|
273
|
+
- lib/vagrant/provisioners/chef_solo.rb
|
274
|
+
- lib/vagrant/provisioners/puppet.rb
|
275
|
+
- lib/vagrant/provisioners/puppet_server.rb
|
276
|
+
- lib/vagrant/provisioners/shell.rb
|
277
|
+
- lib/vagrant/ssh.rb
|
278
|
+
- lib/vagrant/ssh/session.rb
|
279
|
+
- lib/vagrant/systems.rb
|
280
|
+
- lib/vagrant/systems/arch.rb
|
281
|
+
- lib/vagrant/systems/base.rb
|
282
|
+
- lib/vagrant/systems/debian.rb
|
283
|
+
- lib/vagrant/systems/freebsd.rb
|
284
|
+
- lib/vagrant/systems/gentoo.rb
|
285
|
+
- lib/vagrant/systems/linux.rb
|
286
|
+
- lib/vagrant/systems/linux/config.rb
|
287
|
+
- lib/vagrant/systems/linux/error.rb
|
288
|
+
- lib/vagrant/systems/redhat.rb
|
289
|
+
- lib/vagrant/systems/solaris.rb
|
290
|
+
- lib/vagrant/systems/suse.rb
|
291
|
+
- lib/vagrant/systems/ubuntu.rb
|
292
|
+
- lib/vagrant/test_helpers.rb
|
293
|
+
- lib/vagrant/ui.rb
|
294
|
+
- lib/vagrant/util.rb
|
295
|
+
- lib/vagrant/util/busy.rb
|
296
|
+
- lib/vagrant/util/counter.rb
|
297
|
+
- lib/vagrant/util/hash_with_indifferent_access.rb
|
298
|
+
- lib/vagrant/util/platform.rb
|
299
|
+
- lib/vagrant/util/retryable.rb
|
300
|
+
- lib/vagrant/util/safe_exec.rb
|
301
|
+
- lib/vagrant/util/stacked_proc_runner.rb
|
302
|
+
- lib/vagrant/util/template_renderer.rb
|
303
|
+
- lib/vagrant/version.rb
|
304
|
+
- lib/vagrant/vm.rb
|
305
|
+
- templates/chef_server_client.erb
|
306
|
+
- templates/chef_solo_solo.erb
|
307
|
+
- templates/commands/init/Vagrantfile.erb
|
308
|
+
- templates/config/validation_failed.erb
|
309
|
+
- templates/locales/en.yml
|
310
|
+
- templates/network_entry_arch.erb
|
311
|
+
- templates/network_entry_debian.erb
|
312
|
+
- templates/network_entry_gentoo.erb
|
313
|
+
- templates/network_entry_redhat.erb
|
314
|
+
- templates/nfs/exports.erb
|
315
|
+
- templates/nfs/exports_linux.erb
|
316
|
+
- templates/package_Vagrantfile.erb
|
317
|
+
- templates/ssh_config.erb
|
318
|
+
- test/unit/locales/en.yml
|
319
|
+
- test/unit/test_helper.rb
|
320
|
+
- test/unit/vagrant/action/box/destroy_test.rb
|
321
|
+
- test/unit/vagrant/action/box/download_test.rb
|
322
|
+
- test/unit/vagrant/action/box/package_test.rb
|
323
|
+
- test/unit/vagrant/action/box/unpackage_test.rb
|
324
|
+
- test/unit/vagrant/action/box/verify_test.rb
|
325
|
+
- test/unit/vagrant/action/builder_test.rb
|
326
|
+
- test/unit/vagrant/action/env/set_test.rb
|
327
|
+
- test/unit/vagrant/action/environment_test.rb
|
328
|
+
- test/unit/vagrant/action/general/package_test.rb
|
329
|
+
- test/unit/vagrant/action/general/validate_test.rb
|
330
|
+
- test/unit/vagrant/action/vm/boot_test.rb
|
331
|
+
- test/unit/vagrant/action/vm/check_accessible_test.rb
|
332
|
+
- test/unit/vagrant/action/vm/check_box_test.rb
|
333
|
+
- test/unit/vagrant/action/vm/check_guest_additions_test.rb
|
334
|
+
- test/unit/vagrant/action/vm/clean_machine_folder_test.rb
|
335
|
+
- test/unit/vagrant/action/vm/clear_forwarded_ports_test.rb
|
336
|
+
- test/unit/vagrant/action/vm/clear_nfs_exports_test.rb
|
337
|
+
- test/unit/vagrant/action/vm/clear_shared_folders_test.rb
|
338
|
+
- test/unit/vagrant/action/vm/customize_test.rb
|
339
|
+
- test/unit/vagrant/action/vm/destroy_test.rb
|
340
|
+
- test/unit/vagrant/action/vm/destroy_unused_network_interfaces_test.rb
|
341
|
+
- test/unit/vagrant/action/vm/discard_state_test.rb
|
342
|
+
- test/unit/vagrant/action/vm/export_test.rb
|
343
|
+
- test/unit/vagrant/action/vm/forward_ports_helpers_test.rb
|
344
|
+
- test/unit/vagrant/action/vm/forward_ports_test.rb
|
345
|
+
- test/unit/vagrant/action/vm/halt_test.rb
|
346
|
+
- test/unit/vagrant/action/vm/host_name_test.rb
|
347
|
+
- test/unit/vagrant/action/vm/import_test.rb
|
348
|
+
- test/unit/vagrant/action/vm/match_mac_address_test.rb
|
349
|
+
- test/unit/vagrant/action/vm/modify_test.rb
|
350
|
+
- test/unit/vagrant/action/vm/network_test.rb
|
351
|
+
- test/unit/vagrant/action/vm/nfs_helpers_test.rb
|
352
|
+
- test/unit/vagrant/action/vm/nfs_test.rb
|
353
|
+
- test/unit/vagrant/action/vm/package_test.rb
|
354
|
+
- test/unit/vagrant/action/vm/package_vagrantfile_test.rb
|
355
|
+
- test/unit/vagrant/action/vm/provision_test.rb
|
356
|
+
- test/unit/vagrant/action/vm/provisioner_cleanup_test.rb
|
357
|
+
- test/unit/vagrant/action/vm/resume_test.rb
|
358
|
+
- test/unit/vagrant/action/vm/share_folders_test.rb
|
359
|
+
- test/unit/vagrant/action/vm/suspend_test.rb
|
360
|
+
- test/unit/vagrant/action/warden_test.rb
|
361
|
+
- test/unit/vagrant/action_test.rb
|
362
|
+
- test/unit/vagrant/box_collection_test.rb
|
363
|
+
- test/unit/vagrant/box_test.rb
|
364
|
+
- test/unit/vagrant/cli_test.rb
|
365
|
+
- test/unit/vagrant/command/base_test.rb
|
366
|
+
- test/unit/vagrant/command/group_base_test.rb
|
367
|
+
- test/unit/vagrant/command/helpers_test.rb
|
368
|
+
- test/unit/vagrant/command/package_test.rb
|
369
|
+
- test/unit/vagrant/config/base_test.rb
|
370
|
+
- test/unit/vagrant/config/error_recorder_test.rb
|
371
|
+
- test/unit/vagrant/config/ssh_test.rb
|
372
|
+
- test/unit/vagrant/config/vagrant_test.rb
|
373
|
+
- test/unit/vagrant/config/vm/provisioner_test.rb
|
374
|
+
- test/unit/vagrant/config/vm_test.rb
|
375
|
+
- test/unit/vagrant/config_test.rb
|
376
|
+
- test/unit/vagrant/data_store_test.rb
|
377
|
+
- test/unit/vagrant/downloaders/base_test.rb
|
378
|
+
- test/unit/vagrant/downloaders/file_test.rb
|
379
|
+
- test/unit/vagrant/downloaders/http_test.rb
|
380
|
+
- test/unit/vagrant/environment_test.rb
|
381
|
+
- test/unit/vagrant/errors_test.rb
|
382
|
+
- test/unit/vagrant/hosts/base_test.rb
|
383
|
+
- test/unit/vagrant/hosts/bsd_test.rb
|
384
|
+
- test/unit/vagrant/hosts/linux_test.rb
|
385
|
+
- test/unit/vagrant/plugin_test.rb
|
386
|
+
- test/unit/vagrant/provisioners/base_test.rb
|
387
|
+
- test/unit/vagrant/provisioners/chef_client_test.rb
|
388
|
+
- test/unit/vagrant/provisioners/chef_solo_test.rb
|
389
|
+
- test/unit/vagrant/provisioners/chef_test.rb
|
390
|
+
- test/unit/vagrant/provisioners/puppet_server_test.rb
|
391
|
+
- test/unit/vagrant/provisioners/puppet_test.rb
|
392
|
+
- test/unit/vagrant/provisioners/shell_test.rb
|
393
|
+
- test/unit/vagrant/ssh/session_test.rb
|
394
|
+
- test/unit/vagrant/ssh_test.rb
|
395
|
+
- test/unit/vagrant/systems/base_test.rb
|
396
|
+
- test/unit/vagrant/systems/linux_test.rb
|
397
|
+
- test/unit/vagrant/ui_test.rb
|
398
|
+
- test/unit/vagrant/util/busy_test.rb
|
399
|
+
- test/unit/vagrant/util/counter_test.rb
|
400
|
+
- test/unit/vagrant/util/hash_with_indifferent_access_test.rb
|
401
|
+
- test/unit/vagrant/util/platform_test.rb
|
402
|
+
- test/unit/vagrant/util/retryable_test.rb
|
403
|
+
- test/unit/vagrant/util/stacked_proc_runner_test.rb
|
404
|
+
- test/unit/vagrant/util/template_renderer_test.rb
|
405
|
+
- test/unit/vagrant/vm_test.rb
|
406
|
+
- vagrant.gemspec
|
407
|
+
homepage: http://vagrantup.com
|
408
|
+
licenses: []
|
409
|
+
post_install_message:
|
410
|
+
rdoc_options: []
|
411
|
+
require_paths:
|
412
|
+
- lib
|
413
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
414
|
+
none: false
|
415
|
+
requirements:
|
416
|
+
- - ! '>='
|
417
|
+
- !ruby/object:Gem::Version
|
418
|
+
version: '0'
|
419
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
420
|
+
none: false
|
421
|
+
requirements:
|
422
|
+
- - ! '>='
|
423
|
+
- !ruby/object:Gem::Version
|
424
|
+
version: 1.3.6
|
425
|
+
requirements: []
|
426
|
+
rubyforge_project: vagrant
|
427
|
+
rubygems_version: 1.7.2
|
428
|
+
signing_key:
|
429
|
+
specification_version: 3
|
430
|
+
summary: Build and distribute virtualized development environments.
|
431
|
+
test_files: []
|