landrush 0.11.0 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/landrush/action/common.rb +12 -1
- data/lib/landrush/action/redirect_dns.rb +2 -0
- data/lib/landrush/plugin.rb +4 -0
- data/lib/landrush/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7e55caad175c97da6a1f7d178c96bda82012444
|
4
|
+
data.tar.gz: ada1f79f5d38f7b9ca4b28ddabb12277fc7cde2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 247f383e81f21f58cb625aa698b64ba70430330347f84725cd5eb02485929385110563f3f24a91cce708ea187cc00b1a4a8285fbd9fc47161f63ad921753e61a
|
7
|
+
data.tar.gz: 119d68e29a0bf5593e0c2734066f956458062faa2b0cb80d3dd66d1536ef2cc44fe01fc1981e5c7aab97e8986a8c52d6dcd319572c944460c009fa9bccc21cd1
|
@@ -4,6 +4,7 @@ module Landrush
|
|
4
4
|
SUPPORTED_PROVIDERS = {
|
5
5
|
'VagrantPlugins::ProviderVirtualBox::Provider' => :virtualbox,
|
6
6
|
'HashiCorp::VagrantVMwarefusion::Provider' => :vmware_fusion,
|
7
|
+
'VagrantPlugins::Parallels::Provider' => :parallels,
|
7
8
|
'Landrush::FakeProvider' => :fake_provider,
|
8
9
|
}
|
9
10
|
|
@@ -30,11 +31,21 @@ module Landrush
|
|
30
31
|
def vmware?
|
31
32
|
provider == :vmware_fusion
|
32
33
|
end
|
34
|
+
|
35
|
+
def parallels?
|
36
|
+
provider == :parallels
|
37
|
+
end
|
33
38
|
|
34
39
|
def provider
|
35
|
-
SUPPORTED_PROVIDERS.fetch(machine.provider.class.name) { |key|
|
40
|
+
provider_name = SUPPORTED_PROVIDERS.fetch(machine.provider.class.name) { |key|
|
36
41
|
raise "The landrush plugin does not support the #{key} provider yet!"
|
37
42
|
}
|
43
|
+
|
44
|
+
if provider_name == :parallels and VagrantPlugins::Parallels::VERSION < "1.0.3"
|
45
|
+
raise "The landrush plugin supports the Parallels provider v1.0.3 and later. Please, update your 'vagrant-parallels' plugin."
|
46
|
+
end
|
47
|
+
|
48
|
+
provider_name
|
38
49
|
end
|
39
50
|
|
40
51
|
def machine
|
data/lib/landrush/plugin.rb
CHANGED
@@ -25,6 +25,10 @@ module Landrush
|
|
25
25
|
hook.before(HashiCorp::VagrantVMwarefusion::Action::Network, pre_boot_actions)
|
26
26
|
hook.after(HashiCorp::VagrantVMwarefusion::Action::Boot, post_boot_actions)
|
27
27
|
end
|
28
|
+
|
29
|
+
if defined?(VagrantPlugins::Parallels)
|
30
|
+
hook.before(VagrantPlugins::Parallels::Action::Network, pre_boot_actions)
|
31
|
+
end
|
28
32
|
end
|
29
33
|
|
30
34
|
def self.pre_boot_actions
|
data/lib/landrush/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: landrush
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.12.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Hinze
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-03-
|
11
|
+
date: 2014-03-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubydns
|
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
109
109
|
version: '0'
|
110
110
|
requirements: []
|
111
111
|
rubyforge_project:
|
112
|
-
rubygems_version: 2.2.
|
112
|
+
rubygems_version: 2.2.0
|
113
113
|
signing_key:
|
114
114
|
specification_version: 4
|
115
115
|
summary: a vagrant plugin providing consistent DNS visible on host and guests
|