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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e693be4f12a2d3c0da6eb23fb684e58264bc51f0
4
- data.tar.gz: bd61f14b00d88dd191db6db4e66a2f863b86fb37
3
+ metadata.gz: e7e55caad175c97da6a1f7d178c96bda82012444
4
+ data.tar.gz: ada1f79f5d38f7b9ca4b28ddabb12277fc7cde2e
5
5
  SHA512:
6
- metadata.gz: 7374e121ae3e787f8283252a62eafb0cdd4f3537f7708074fa18f8fcc8794b89db3d937e16ec46226ae72fb52543457a3cbc7c52d24650d7c3b76f29f43f94c5
7
- data.tar.gz: d3366905659e8f9ea6b4deec79c850ff842c2e7812c981baa6c789ce9c5e0d2d1671e13f3b33324d6628c9e08c7a8c75ffdc518cfe752e2d56dfe6aca5d95a2e
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
@@ -24,6 +24,8 @@ module Landrush
24
24
  '10.0.2.2'
25
25
  when :vmware_fusion then
26
26
  _gateway_for_ip(machine.guest.capability(:configured_dns_server))
27
+ when :parallels then
28
+ machine.provider.capability(:host_address)
27
29
  end
28
30
  end
29
31
 
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Landrush
2
- VERSION = "0.11.0"
2
+ VERSION = "0.12.0"
3
3
  end
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.11.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-21 00:00:00.000000000 Z
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.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