vagrant-hostentries 0.6.2 → 0.6.3
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 +15 -0
- data/Gemfile.lock +1 -1
- data/lib/vagrant-hostentries/action/remove_hosts_entry.rb +16 -15
- data/vagrant-hostentries.gemspec +1 -1
- metadata +5 -19
checksums.yaml
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
---
|
|
2
|
+
!binary "U0hBMQ==":
|
|
3
|
+
metadata.gz: !binary |-
|
|
4
|
+
ZmM4NjM1ZDA4MmQwYzBjZmUzMjUwMTQ0YmI2ZWVkMjZmYWFkOTA2NA==
|
|
5
|
+
data.tar.gz: !binary |-
|
|
6
|
+
MTAxZjVkMzg3NDIxM2Y4YjI5MDE2OWZmOGI5YmRlYTU5YzM1M2U4ZQ==
|
|
7
|
+
!binary "U0hBNTEy":
|
|
8
|
+
metadata.gz: !binary |-
|
|
9
|
+
NTY3YzhiNWVmZTA2MjE2ZDViNWNjZjQzNzgwNjJkODY4ZGE4ZGRiYWRlM2M4
|
|
10
|
+
MmQyNzI0YTM2ZGM0NDdjOWUyYWNhNDJkY2VhMzI5ZmRhZTIyZGIwZjc5NWFl
|
|
11
|
+
ZDdmMjY1OTc4ZTMwNDk5YjU3NjA4MzEzYTYxMWE4NDViY2ZjMTk=
|
|
12
|
+
data.tar.gz: !binary |-
|
|
13
|
+
ZDM2MWZkYTU4YWRhZjQ4YmY1YzVjYjI2NGE2ZjQ2OGE5MjU5NDYzM2U0MDI2
|
|
14
|
+
ZDYxM2M2M2UyYzY2MWIxNDc4YmZmMTY2NDk1ZWI3NTE4ZTAwMGYzNmM1MGY0
|
|
15
|
+
MzkwZTJjOTRkNzQwZTAyNGJhYjE2MGVkZDYwODBmNzY3YzhjMDM=
|
data/Gemfile.lock
CHANGED
|
@@ -1,27 +1,28 @@
|
|
|
1
1
|
module VagrantPlugins
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
module Hostentries
|
|
3
|
+
module Action
|
|
4
|
+
class RemoveHostsEntry
|
|
5
5
|
def initialize(app, env)
|
|
6
6
|
@app = app
|
|
7
7
|
@logger = Log4r::Logger.new("VagrantPlugins::Hosts")
|
|
8
8
|
end
|
|
9
9
|
|
|
10
10
|
def call(env)
|
|
11
|
-
|
|
11
|
+
env[:host].remove_hosts_entry(env[:machine].config.vm.hostname)
|
|
12
12
|
env[:machine].env.active_machines.each do |machine|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
13
|
+
next unless machine.methods.member? :guest
|
|
14
|
+
if !machine.guest.capability?(:remove_hosts_entry)
|
|
15
|
+
@logger.warn "Unsupported machine #{machine.config.name}"
|
|
16
|
+
next
|
|
17
|
+
end
|
|
18
|
+
env[:machine].env.active_machines.each do |m|
|
|
19
|
+
m_hostname = m.config.hostname
|
|
20
|
+
machine.guest.capability(:remove_hosts_entry, m_hostname)
|
|
21
|
+
end
|
|
21
22
|
end
|
|
22
23
|
return @app.call(env)
|
|
23
24
|
end
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
27
28
|
end
|
data/vagrant-hostentries.gemspec
CHANGED
|
@@ -13,7 +13,7 @@ Gem::Specification.new do |gem|
|
|
|
13
13
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
|
14
14
|
gem.name = "vagrant-hostentries"
|
|
15
15
|
gem.require_paths = ["lib"]
|
|
16
|
-
gem.version = "0.6.
|
|
16
|
+
gem.version = "0.6.3"
|
|
17
17
|
|
|
18
18
|
gem.add_development_dependency 'bundler'
|
|
19
19
|
gem.add_development_dependency 'vagrant'
|
metadata
CHANGED
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: vagrant-hostentries
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
5
|
-
prerelease:
|
|
4
|
+
version: 0.6.3
|
|
6
5
|
platform: ruby
|
|
7
6
|
authors:
|
|
8
7
|
- Mike Geggie
|
|
9
8
|
autorequire:
|
|
10
9
|
bindir: bin
|
|
11
10
|
cert_chain: []
|
|
12
|
-
date: 2013-05-
|
|
11
|
+
date: 2013-05-24 00:00:00.000000000 Z
|
|
13
12
|
dependencies:
|
|
14
13
|
- !ruby/object:Gem::Dependency
|
|
15
14
|
name: bundler
|
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
|
17
|
-
none: false
|
|
18
16
|
requirements:
|
|
19
17
|
- - ! '>='
|
|
20
18
|
- !ruby/object:Gem::Version
|
|
@@ -22,7 +20,6 @@ dependencies:
|
|
|
22
20
|
type: :development
|
|
23
21
|
prerelease: false
|
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
|
25
|
-
none: false
|
|
26
23
|
requirements:
|
|
27
24
|
- - ! '>='
|
|
28
25
|
- !ruby/object:Gem::Version
|
|
@@ -30,7 +27,6 @@ dependencies:
|
|
|
30
27
|
- !ruby/object:Gem::Dependency
|
|
31
28
|
name: vagrant
|
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
|
33
|
-
none: false
|
|
34
30
|
requirements:
|
|
35
31
|
- - ! '>='
|
|
36
32
|
- !ruby/object:Gem::Version
|
|
@@ -38,7 +34,6 @@ dependencies:
|
|
|
38
34
|
type: :development
|
|
39
35
|
prerelease: false
|
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
41
|
-
none: false
|
|
42
37
|
requirements:
|
|
43
38
|
- - ! '>='
|
|
44
39
|
- !ruby/object:Gem::Version
|
|
@@ -46,7 +41,6 @@ dependencies:
|
|
|
46
41
|
- !ruby/object:Gem::Dependency
|
|
47
42
|
name: rake
|
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
|
49
|
-
none: false
|
|
50
44
|
requirements:
|
|
51
45
|
- - ! '>='
|
|
52
46
|
- !ruby/object:Gem::Version
|
|
@@ -54,7 +48,6 @@ dependencies:
|
|
|
54
48
|
type: :development
|
|
55
49
|
prerelease: false
|
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
|
57
|
-
none: false
|
|
58
51
|
requirements:
|
|
59
52
|
- - ! '>='
|
|
60
53
|
- !ruby/object:Gem::Version
|
|
@@ -85,32 +78,25 @@ files:
|
|
|
85
78
|
- vagrant-hostentries.gemspec
|
|
86
79
|
homepage: https://github.com/trigren/vagrant-hosts
|
|
87
80
|
licenses: []
|
|
81
|
+
metadata: {}
|
|
88
82
|
post_install_message:
|
|
89
83
|
rdoc_options: []
|
|
90
84
|
require_paths:
|
|
91
85
|
- lib
|
|
92
86
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
93
|
-
none: false
|
|
94
87
|
requirements:
|
|
95
88
|
- - ! '>='
|
|
96
89
|
- !ruby/object:Gem::Version
|
|
97
90
|
version: '0'
|
|
98
|
-
segments:
|
|
99
|
-
- 0
|
|
100
|
-
hash: -1157774631023106635
|
|
101
91
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
102
|
-
none: false
|
|
103
92
|
requirements:
|
|
104
93
|
- - ! '>='
|
|
105
94
|
- !ruby/object:Gem::Version
|
|
106
95
|
version: '0'
|
|
107
|
-
segments:
|
|
108
|
-
- 0
|
|
109
|
-
hash: -1157774631023106635
|
|
110
96
|
requirements: []
|
|
111
97
|
rubyforge_project:
|
|
112
|
-
rubygems_version:
|
|
98
|
+
rubygems_version: 2.0.3
|
|
113
99
|
signing_key:
|
|
114
|
-
specification_version:
|
|
100
|
+
specification_version: 4
|
|
115
101
|
summary: Vagrant plugin to manage /etc/hosts entries.
|
|
116
102
|
test_files: []
|