vagrant-hosts 2.7.0 → 2.7.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: cfff7593a5865f5cabdc74e7270a64c3e1f5de15
4
- data.tar.gz: e4f29ffa5b3a999603dbe792a9ed75da87b9222b
3
+ metadata.gz: ed8d9542bf42223218d3104999aab673b9bcfcfc
4
+ data.tar.gz: 2e5169054451f44ccd3fba4827f095b0a72f3aa0
5
5
  SHA512:
6
- metadata.gz: 564de5beef4fc73fe719ffeaf728cf07f2e945e1acecb2bef30b53c8ac0deddaa7d187bfa722965747f1f31ab9120ebf83ef58fb6951f34980a32b9189a1cb05
7
- data.tar.gz: 08b964be8d8ee3d53dfce11efb0b505078f92ea54ecbd8f29c2cbcb90b88e6ceb312bf1c217c1ebe4bfc427d0c1d66bf803db80681e85ef60d41045e280e0849
6
+ metadata.gz: a689909a174f55a824b8d0f3653b52f1fcc7e999788f9b6e30aa9a1880c347936eccf2526df53ea2cc18b8d926e99b136aaffa24ecf03b11623fe4f85c5156b3
7
+ data.tar.gz: c08d0e02d031e9f0995688b0c05b1a08e80c105a61dbdbb49bc221f2b04b6814c246036702721ff22c7786b18f803d03c9e5407b21124a221f4d4f41a8b0c9c2
data/CHANGELOG CHANGED
@@ -1,6 +1,17 @@
1
1
  CHANGELOG
2
2
  =========
3
3
 
4
+ 2.7.1
5
+ -----
6
+
7
+ 2016-03-29
8
+
9
+ This is a backwards compatible bugfix release.
10
+
11
+ * (GH-63) Fix a regression where vagrant-hosts 2.7.0 no longer set a default
12
+ hostname generated from the machine name.
13
+
14
+
4
15
  2.7.0
5
16
  -----
6
17
 
data/README.markdown CHANGED
@@ -42,10 +42,6 @@ behaviors of each provisioner instance.
42
42
  * Description: A boolean which controls whether running the hosts provisioner causes an update on all other running machines.
43
43
  This also happens during machine destruction.
44
44
  * Default: `false`
45
- * `sync_hosts`
46
- * Description: A boolean which controls whether running the hosts provisioner causes an update on all other running machines.
47
- This also happens during machine destruction.
48
- * Default: `false`
49
45
 
50
46
  ### Special Keys
51
47
 
@@ -14,7 +14,23 @@ class VagrantHosts::Cap::SyncHosts::Base
14
14
  end
15
15
 
16
16
  def sync!
17
+ hostname = @machine.config.vm.hostname || @machine.name.to_s
18
+ change_host_name(hostname)
19
+
17
20
  # call to method not implemented by abstract base class
18
21
  update_hosts
19
22
  end
23
+
24
+ private
25
+
26
+ # @param name [String] The new hostname to apply on the guest
27
+ def change_host_name(name)
28
+ case Vagrant::VERSION
29
+ when /^1\.1/
30
+ @machine.guest.change_host_name(name)
31
+ else
32
+ @machine.guest.capability(:change_host_name, name)
33
+ end
34
+ end
35
+
20
36
  end
@@ -1,3 +1,3 @@
1
1
  module VagrantHosts
2
- VERSION = '2.7.0'
2
+ VERSION = '2.7.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-hosts
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.7.0
4
+ version: 2.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrien Thebo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-28 00:00:00.000000000 Z
11
+ date: 2016-03-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake