vagrant-hosts 2.2.3 → 2.2.4
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/CHANGELOG +9 -0
- data/lib/vagrant-hosts/config.rb +4 -0
- data/lib/vagrant-hosts/config_builder.rb +4 -1
- data/lib/vagrant-hosts/version.rb +1 -1
- 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: 4655690b5e589946052faf4e9c04340073a0c8d7
|
|
4
|
+
data.tar.gz: 4facee7ad0bdd38f6dacea3d5c02ffbd9d6d97bc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c5665edd4f1bd8b27b23467bf9f0ae53bc9bae4db4ebed085f86c72432b2922b9bdc0650940a07369dea1a8755505f8d53e3d9b7643a231687e055a067c92cdf
|
|
7
|
+
data.tar.gz: 8d2409e7b2887fb158a04db63936feb633d258c26e39bba6b4420e4e692456052cb786ed51a1f8dc68fc5356aa8e3935063f4603723ebc615815f0c99dff4d53
|
data/CHANGELOG
CHANGED
data/lib/vagrant-hosts/config.rb
CHANGED
|
@@ -12,6 +12,10 @@ module VagrantHosts
|
|
|
12
12
|
# other vagrant machines
|
|
13
13
|
attr_accessor :autoconfigure
|
|
14
14
|
|
|
15
|
+
# @!attribute autoconfigure
|
|
16
|
+
# @return [TrueClass, FalseClass] A boolean indicating whether a
|
|
17
|
+
# `127.0.1.1` entry should be added mapping to the FQDN of the VM.
|
|
18
|
+
# Default: `true`.
|
|
15
19
|
attr_accessor :add_localhost_hostnames
|
|
16
20
|
|
|
17
21
|
def initialize
|
|
@@ -8,6 +8,8 @@ module VagrantHosts
|
|
|
8
8
|
attr_accessor :hosts
|
|
9
9
|
# @!attribute [rw] autoconfigure
|
|
10
10
|
attr_accessor :autoconfigure
|
|
11
|
+
# @!attribute [rw] add_localhost_hostnames
|
|
12
|
+
attr_accessor :add_localhost_hostnames
|
|
11
13
|
|
|
12
14
|
def initialize
|
|
13
15
|
@hosts = []
|
|
@@ -16,7 +18,8 @@ module VagrantHosts
|
|
|
16
18
|
def to_proc
|
|
17
19
|
Proc.new do |vm_config|
|
|
18
20
|
vm_config.provision :hosts do |h_config|
|
|
19
|
-
h_config.autoconfigure =
|
|
21
|
+
h_config.autoconfigure = attr(:autoconfigure) unless attr(:autoconfigure).nil?
|
|
22
|
+
h_config.add_localhost_hostnames = attr(:add_localhost_hostnames) unless attr(:add_localhost_hostnames).nil?
|
|
20
23
|
|
|
21
24
|
@hosts.each do |(address, aliases)|
|
|
22
25
|
h_config.add_host address, aliases
|
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.2.
|
|
4
|
+
version: 2.2.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Adrien Thebo
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-11-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: |2
|
|
14
14
|
Manage static DNS entries and configuration for Vagrant guests.
|