vagrant-plugin-dummy 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
data/README.md
CHANGED
@@ -1,7 +1,11 @@
|
|
1
1
|
vagrant-plugin-dummy
|
2
2
|
==========================
|
3
3
|
|
4
|
-
This is a "dummy" plugin for vagrant. This is useful if you want to only
|
4
|
+
This is a "dummy guest" plugin for vagrant. This is useful if you want to only
|
5
|
+
use vagrant for creating and destroying clean guests.
|
6
|
+
|
7
|
+
NOTE: This uses the provider to check if the guest is online before returning
|
8
|
+
to vagrant. This check only works with VirtualBox at the moment.
|
5
9
|
|
6
10
|
Installing vagrant-plugin-dummy
|
7
11
|
==========================
|
@@ -17,7 +21,7 @@ vagrant plugin install pkg/vagrant-plugin-dummy-0.0.2.gem
|
|
17
21
|
Usage
|
18
22
|
==========================
|
19
23
|
|
20
|
-
|
24
|
+
Add this to a Vagrantfile:
|
21
25
|
|
22
26
|
```
|
23
27
|
config.vm.guest :dummy
|
@@ -21,7 +21,15 @@ module VagrantPluginDummy
|
|
21
21
|
end
|
22
22
|
|
23
23
|
def ready?
|
24
|
-
@
|
24
|
+
@machine = machine
|
25
|
+
@logger.debug("Checking the status of NIC 0")
|
26
|
+
# NOTE: There is no timeout here. We should probably have one...
|
27
|
+
@nic_0_status = ''
|
28
|
+
while @nic_0_status !~ /Up/ do
|
29
|
+
@nic_0_status = @machine.provider.driver.execute('guestproperty', 'get', @machine.id, '/VirtualBox/GuestInfo/Net/0/Status') || ''
|
30
|
+
@logger.debug("NIC 0 Status: "+ @nic_0_status)
|
31
|
+
end
|
32
|
+
|
25
33
|
return true
|
26
34
|
end
|
27
35
|
|
@@ -4,7 +4,7 @@ module VagrantPluginDummy
|
|
4
4
|
module Guest
|
5
5
|
class Dummy < Vagrant.plugin("2", :guest)
|
6
6
|
|
7
|
-
# Vagrant 1.1.x
|
7
|
+
# Vagrant 1.1.x compatibility methods
|
8
8
|
# Implement the 1.1.x methods and call through to the new 1.2.x capabilities
|
9
9
|
|
10
10
|
attr_reader :machine
|
@@ -38,7 +38,7 @@ module VagrantPluginDummy
|
|
38
38
|
false
|
39
39
|
end
|
40
40
|
|
41
|
-
# Vagrant 1.2.x
|
41
|
+
# Vagrant 1.2.x compatibility methods
|
42
42
|
|
43
43
|
def detect?(machine)
|
44
44
|
@machine.communicate.test("")
|
@@ -7,6 +7,7 @@ Gem::Specification.new do |gem|
|
|
7
7
|
gem.description = %q{Dummy Guest Support for Vagrant}
|
8
8
|
gem.summary = %q{A small gem that adds dummy guest support to vagrant, basically no vagrant features}
|
9
9
|
gem.homepage = "https://github.com/kanzure/vagrant-plugin-dummy"
|
10
|
+
gem.license = "BSD"
|
10
11
|
|
11
12
|
# The following block of code determines the files that should be included
|
12
13
|
# in the gem. It does this by reading all the files in the directory where
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-plugin-dummy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-09-
|
12
|
+
date: 2013-09-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -170,7 +170,8 @@ files:
|
|
170
170
|
- locales/en.yml
|
171
171
|
- .gitignore
|
172
172
|
homepage: https://github.com/kanzure/vagrant-plugin-dummy
|
173
|
-
licenses:
|
173
|
+
licenses:
|
174
|
+
- BSD
|
174
175
|
post_install_message:
|
175
176
|
rdoc_options: []
|
176
177
|
require_paths:
|
@@ -181,18 +182,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
181
182
|
- - ! '>='
|
182
183
|
- !ruby/object:Gem::Version
|
183
184
|
version: '0'
|
184
|
-
segments:
|
185
|
-
- 0
|
186
|
-
hash: -266675906004116376
|
187
185
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
188
186
|
none: false
|
189
187
|
requirements:
|
190
188
|
- - ! '>='
|
191
189
|
- !ruby/object:Gem::Version
|
192
190
|
version: '0'
|
193
|
-
segments:
|
194
|
-
- 0
|
195
|
-
hash: -266675906004116376
|
196
191
|
requirements: []
|
197
192
|
rubyforge_project:
|
198
193
|
rubygems_version: 1.8.23
|