vagrant-hostmanager 1.6.0 → 1.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/README.md +5 -0
- data/lib/vagrant-hostmanager/command.rb +1 -1
- data/lib/vagrant-hostmanager/hosts_file/updater.rb +6 -7
- data/lib/vagrant-hostmanager/version.rb +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8ebb85139ec388295e6973a2fdf6cf0838e818ef
|
4
|
+
data.tar.gz: a4fef07f623c51be190f4ddd0d998ccb46ca71ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96be373e7b60d143ace0b56eb2bcf79a8178b99a818f891315f117350cd789088243253d080223db66f8003b922d12ab8b35cc6845eba894a34c30abb02181a3
|
7
|
+
data.tar.gz: becfe30314c9a4a7aec3ccc0a221502bd8222615785b93bd28ba742dcae685372f9cc7e48eb1af01c16ec5c1f0541eed57dadce9b22c3373e77e4a01e5ee4499
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 1.6.1
|
4
|
+
### Bug fixes
|
5
|
+
* Retain tmp hosts file and fix a bug where powershell mv does not move folder contents, in that context it's moving a file. [[#157](https://github.com/smdahlen/vagrant-hostmanager/issues/157)]
|
6
|
+
|
7
|
+
[Full diff](https://github.com/smdahlen/vagrant-hostmanager/compare/v1.6.0...v1.6.1)
|
8
|
+
|
9
|
+
|
3
10
|
## 1.6.0
|
4
11
|
### Features
|
5
12
|
* splits hostnames across many lines [[#67](https://github.com/smdahlen/vagrant-hostmanager/pull/103)]
|
data/README.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
Vagrant Host Manager
|
2
2
|
====================
|
3
|
+
|
4
|
+
[![Gem](https://img.shields.io/gem/dt/vagrant-hostmanager.svg)](https://rubygems.org/gems/vagrant-hostmanager)
|
5
|
+
[![Gem](https://img.shields.io/gem/dtv/vagrant-hostmanager.svg)](https://rubygems.org/gems/vagrant-hostmanager)
|
6
|
+
[![Twitter](https://img.shields.io/twitter/url/https/github.com/smdahlen/vagrant-hostmanager.svg?style=social)](https://twitter.com/intent/tweet?text=Check%20out%20this%20awesome%20Vagrant%20plugin%21&url=https%3A%2F%2Fgithub.com%2Fsmdahlen%2Fvagrant-hostmanager&hashtags=vagrant%hostmanager&original_referer=)
|
7
|
+
|
3
8
|
`vagrant-hostmanager` is a Vagrant 1.1+ plugin that manages the `/etc/hosts`
|
4
9
|
file on guest machines (and optionally the host). Its goal is to enable
|
5
10
|
resolution of multi-machine environments deployed with a cloud provider
|
@@ -4,7 +4,7 @@ module VagrantPlugins
|
|
4
4
|
|
5
5
|
# Show description when `vagrant list-commands` is triggered
|
6
6
|
def self.synopsis
|
7
|
-
"manages the /etc/hosts file within a multi-machine environment"
|
7
|
+
"plugin: vagrant-hostmanager: manages the /etc/hosts file within a multi-machine environment"
|
8
8
|
end
|
9
9
|
|
10
10
|
def execute
|
@@ -36,14 +36,13 @@ module VagrantPlugins
|
|
36
36
|
|
37
37
|
# upload modified file and remove temporary file
|
38
38
|
machine.communicate.upload(file, '/tmp/hosts')
|
39
|
-
|
39
|
+
if windir
|
40
|
+
machine.communicate.sudo("#{move_cmd} /tmp/hosts/hosts.#{machine.name} #{realhostfile}")
|
41
|
+
else
|
42
|
+
machine.communicate.sudo("#{move_cmd} /tmp/hosts #{realhostfile}")
|
43
|
+
end
|
40
44
|
end
|
41
45
|
|
42
|
-
# i have no idea if this is a windows competibility issue or not, but sometimes it dosen't work on my machine
|
43
|
-
begin
|
44
|
-
FileUtils.rm(file)
|
45
|
-
rescue Exception => e
|
46
|
-
end
|
47
46
|
end
|
48
47
|
|
49
48
|
def update_host
|
@@ -75,7 +74,7 @@ module VagrantPlugins
|
|
75
74
|
file = Pathname.new(file)
|
76
75
|
old_file_content = file.read
|
77
76
|
new_file_content = update_content(old_file_content, resolving_machine, include_id)
|
78
|
-
file.open('
|
77
|
+
file.open('wb') { |io| io.write(new_file_content) }
|
79
78
|
old_file_content != new_file_content
|
80
79
|
end
|
81
80
|
|
metadata
CHANGED
@@ -1,41 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-hostmanager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shawn Dahlen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.3'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.3'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
description: A Vagrant plugin that manages the /etc/hosts file within a multi-machine
|
@@ -46,7 +46,7 @@ executables: []
|
|
46
46
|
extensions: []
|
47
47
|
extra_rdoc_files: []
|
48
48
|
files:
|
49
|
-
- .gitignore
|
49
|
+
- ".gitignore"
|
50
50
|
- CHANGELOG.md
|
51
51
|
- Gemfile
|
52
52
|
- LICENSE.txt
|
@@ -79,12 +79,12 @@ require_paths:
|
|
79
79
|
- lib
|
80
80
|
required_ruby_version: !ruby/object:Gem::Requirement
|
81
81
|
requirements:
|
82
|
-
- -
|
82
|
+
- - ">="
|
83
83
|
- !ruby/object:Gem::Version
|
84
84
|
version: '0'
|
85
85
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
89
|
version: '0'
|
90
90
|
requirements: []
|