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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b816d63e7e9441bd34bb0d97719d670a43f0317e
4
- data.tar.gz: 249cc9e68031d224c9e2d6481bfdba8e1b358caa
3
+ metadata.gz: 77840884a0bd9fc62d5a5b0278d1d49e5523eebd
4
+ data.tar.gz: d632602974b03a8b775e452fb38052202ddd476d
5
5
  SHA512:
6
- metadata.gz: c50874304397ffc4493155201de0907920ccfcb4a488e53365c6e411d7fbb04aed798aeecd71c505b9a243b5a49f36b7050dc47722a7c5394c4ee4ec052459fe
7
- data.tar.gz: 7c884db92b63aedc15a74b26aa84cc8d790c68dc77e34406ccead1bc73e9a44051060e3ec3b9458b3348914c24dba28e55296d203c30b798f93ee1e340f8cd72
6
+ metadata.gz: 1104136bab10696f6ba984fdb97f146cdfa36a99b828a143cf233077a1e3aa064d3c9ab9e3e957ef5d92be8c4af0f9f8743e30a86f5e8cd8c1d55d7d625fbec7
7
+ data.tar.gz: c13584093a97de4e183ddca489e56c43d7143ad97c955eac0ab768b7b6c659ae4b6db5f49253150b5e477cc44ab8dec59692938818ea2d81ff4c190d52c6216c
data/.rubocop_todo.yml CHANGED
@@ -21,6 +21,7 @@ Metrics/AbcSize:
21
21
  Max: 36
22
22
  Exclude:
23
23
  - 'lib/landrush/command.rb'
24
+ - 'lib/landrush/cap/guest/all/read_host_visible_ip_address.rb'
24
25
 
25
26
  # Offense count: 1
26
27
  # Configuration parameters: CountComments.
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
 
@@ -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.after(Vagrant::Action::Builtin::GracefulHalt, Action::Teardown)
63
+ hook.append(Action::Teardown)
59
64
  end
60
65
 
61
66
  action_hook 'landrush_teardown', :machine_action_halt, &landrush_teardown
@@ -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
- embedded_bin_dir = File.join(File.dirname(File.dirname(vagrant_binary)), 'embedded', 'bin')
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
 
@@ -1,3 +1,3 @@
1
1
  module Landrush
2
- VERSION = '1.1.0'.freeze
2
+ VERSION = '1.1.1'.freeze
3
3
  end
@@ -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.0
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-05 00:00:00.000000000 Z
11
+ date: 2016-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubydns