landrush 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop_todo.yml +1 -0
- data/CHANGELOG.md +8 -0
- data/lib/landrush/action/common.rb +1 -0
- data/lib/landrush/cap/guest/all/read_host_visible_ip_address.rb +2 -0
- data/lib/landrush/plugin.rb +6 -1
- data/lib/landrush/server.rb +7 -1
- data/lib/landrush/version.rb +1 -1
- data/test/landrush/cap/guest/all/read_host_visible_ip_address_test.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 77840884a0bd9fc62d5a5b0278d1d49e5523eebd
|
4
|
+
data.tar.gz: d632602974b03a8b775e452fb38052202ddd476d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1104136bab10696f6ba984fdb97f146cdfa36a99b828a143cf233077a1e3aa064d3c9ab9e3e957ef5d92be8c4af0f9f8743e30a86f5e8cd8c1d55d7d625fbec7
|
7
|
+
data.tar.gz: c13584093a97de4e183ddca489e56c43d7143ad97c955eac0ab768b7b6c659ae4b6db5f49253150b5e477cc44ab8dec59692938818ea2d81ff4c190d52c6216c
|
data/.rubocop_todo.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
## [1.1.1] - 2016-08-07
|
2
|
+
|
3
|
+
- Issue [#241](https://github.com/vagrant-landrush/landrush/issues/241) - Action::Teardown is not called for providers other than VirtualBox
|
4
|
+
- Issue [#239](https://github.com/vagrant-landrush/landrush/issues/239) - Add support for HyperV
|
5
|
+
- Issue [#237](https://github.com/vagrant-landrush/landrush/issues/237) - Landrush::Server.ensure_ruby_on_path should not be using File.join
|
6
|
+
- Issue [#236](https://github.com/vagrant-landrush/landrush/issues/236) - Explicitly call landrush_ip_installed and landrush_ip_install
|
7
|
+
|
1
8
|
## [1.1.0] - 2016-08-05
|
2
9
|
|
3
10
|
- Issue [#234](https://github.com/vagrant-landrush/landrush/issues/234) - sed command in RestartDnsmasq for redhat hosts does insert 127.0.0.1
|
@@ -41,6 +48,7 @@
|
|
41
48
|
## [0.16.0] - 2015-01-18
|
42
49
|
- Added: Support for IN::PTR records (#98)
|
43
50
|
|
51
|
+
[1.1.1]: https://github.com/phinze/landrush/compare/v1.1.0...v1.1.1
|
44
52
|
[1.1.0]: https://github.com/phinze/landrush/compare/v1.0.0...v1.1.0
|
45
53
|
[1.0.0]: https://github.com/phinze/landrush/compare/v0.19.0...v1.0.0
|
46
54
|
[0.19.0]: https://github.com/phinze/landrush/compare/v0.18.0...v0.19.0
|
@@ -6,6 +6,7 @@ module Landrush
|
|
6
6
|
'VagrantPlugins::ProviderLibvirt::Provider' => :libvirt,
|
7
7
|
'HashiCorp::VagrantVMwarefusion::Provider' => :vmware_fusion,
|
8
8
|
'VagrantPlugins::Parallels::Provider' => :parallels,
|
9
|
+
'VagrantPlugins::HyperV::Provider' => :hyperv,
|
9
10
|
'Landrush::FakeProvider' => :fake_provider
|
10
11
|
}.freeze
|
11
12
|
|
@@ -17,6 +17,8 @@ module Landrush
|
|
17
17
|
def self.read_host_visible_ip_address(machine)
|
18
18
|
@machine = machine
|
19
19
|
|
20
|
+
@machine.guest.capability(:landrush_ip_install) unless @machine.guest.capability(:landrush_ip_installed)
|
21
|
+
|
20
22
|
addr = nil
|
21
23
|
addresses = machine.guest.capability(:landrush_ip_get)
|
22
24
|
|
data/lib/landrush/plugin.rb
CHANGED
@@ -18,19 +18,24 @@ module Landrush
|
|
18
18
|
require_relative 'action/install_prerequisites'
|
19
19
|
require_relative 'action/redirect_dns'
|
20
20
|
|
21
|
+
# Hooks for VirtualBox and HyperV providers
|
21
22
|
hook.before(VagrantPlugins::ProviderVirtualBox::Action::Network, pre_boot_actions)
|
23
|
+
hook.before(VagrantPlugins::HyperV::Action::WaitForIPAddress, pre_boot_actions)
|
22
24
|
hook.after(Vagrant::Action::Builtin::WaitForCommunicator, post_boot_actions)
|
23
25
|
|
26
|
+
# Hooks for Libvirt provider
|
24
27
|
if defined?(VagrantPlugins::ProviderLibvirt)
|
25
28
|
hook.after(VagrantPlugins::ProviderLibvirt::Action::CreateNetworks, pre_boot_actions)
|
26
29
|
hook.after(VagrantPlugins::ProviderLibvirt::Action::WaitTillUp, post_boot_actions)
|
27
30
|
end
|
28
31
|
|
32
|
+
# Hooks for VMWarefusion provider
|
29
33
|
if defined?(HashiCorp::VagrantVMwarefusion)
|
30
34
|
hook.before(HashiCorp::VagrantVMwarefusion::Action::Network, pre_boot_actions)
|
31
35
|
hook.after(HashiCorp::VagrantVMwarefusion::Action::WaitForCommunicator, post_boot_actions)
|
32
36
|
end
|
33
37
|
|
38
|
+
# Hooks for Parallels provider
|
34
39
|
if defined?(VagrantPlugins::Parallels)
|
35
40
|
hook.before(VagrantPlugins::Parallels::Action::Network, pre_boot_actions)
|
36
41
|
end
|
@@ -55,7 +60,7 @@ module Landrush
|
|
55
60
|
landrush_teardown = lambda do |hook|
|
56
61
|
require_relative 'action/common'
|
57
62
|
require_relative 'action/teardown'
|
58
|
-
hook.
|
63
|
+
hook.append(Action::Teardown)
|
59
64
|
end
|
60
65
|
|
61
66
|
action_hook 'landrush_teardown', :machine_action_halt, &landrush_teardown
|
data/lib/landrush/server.rb
CHANGED
@@ -274,7 +274,13 @@ module Landrush
|
|
274
274
|
vagrant_binary = Vagrant::Util::Which.which('vagrant')
|
275
275
|
vagrant_binary = File.realpath(vagrant_binary) if File.symlink?(vagrant_binary)
|
276
276
|
# in a Vagrant installation the Ruby executable is in ../embedded/bin relative to the vagrant executable
|
277
|
-
|
277
|
+
# we don't use File.join here, since even on Cygwin we want a Windows path - see https://github.com/vagrant-landrush/landrush/issues/237
|
278
|
+
if Vagrant::Util::Platform.windows?
|
279
|
+
separator = '\\'
|
280
|
+
else
|
281
|
+
separator = '/'
|
282
|
+
end
|
283
|
+
embedded_bin_dir = File.dirname(File.dirname(vagrant_binary)) + separator + 'embedded' + separator + 'bin'
|
278
284
|
ENV['PATH'] = embedded_bin_dir + File::PATH_SEPARATOR + ENV['PATH'] if File.exist?(embedded_bin_dir)
|
279
285
|
end
|
280
286
|
|
data/lib/landrush/version.rb
CHANGED
@@ -14,6 +14,7 @@ module Landrush
|
|
14
14
|
before do
|
15
15
|
# TODO: Is there a way to only unstub it for read_host_visible_ip_address?
|
16
16
|
machine.guest.unstub(:capability)
|
17
|
+
machine.guest.stubs(:capability).with(:landrush_ip_installed).returns(true)
|
17
18
|
machine.guest.stubs(:capability).with(:landrush_ip_get).returns(fake_addresses)
|
18
19
|
end
|
19
20
|
|
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: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Hinze
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08-
|
11
|
+
date: 2016-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubydns
|