vagrant-hosts 2.8.2 → 2.8.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/CHANGELOG +11 -0
- data/Gemfile +1 -1
- data/lib/vagrant-hosts/cap/facts/base.rb +0 -19
- data/lib/vagrant-hosts/cap/facts/posix.rb +20 -0
- data/lib/vagrant-hosts/cap/facts/windows.rb +18 -0
- 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: 17835dd36d0ddc4a0c5f81f689524b27f631a948
|
4
|
+
data.tar.gz: c00d66d9f43d293eaeaa25f65f32d917fb4140f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17f0584cd999d50b1fc17b26724c25423a79240a69da295af12cf8cc107bf47975b22bc363373d93b16d9ca1bb1fd83b2c5b21f5be4e8f735ec52a8bb121fafd
|
7
|
+
data.tar.gz: bf34838c4b82a6bf5de3dbad2a53b03f02ec65271db839c032e9e879f2959d90349a192c845e0504cfe4fdd3aefc785c8cbfce9a03479912bcc75340c566b1a3
|
data/.travis.yml
CHANGED
@@ -29,6 +29,6 @@ matrix:
|
|
29
29
|
- rvm: 2.4.4
|
30
30
|
env: TEST_VAGRANT_VERSION=v2.0.4 BUNDLER_VERSION=1.16.1
|
31
31
|
- rvm: 2.4.4
|
32
|
-
env: TEST_VAGRANT_VERSION=v2.1.
|
32
|
+
env: TEST_VAGRANT_VERSION=v2.1.2 BUNDLER_VERSION=1.16.1
|
33
33
|
- rvm: 2.4.4
|
34
34
|
env: TEST_VAGRANT_VERSION=HEAD BUNDLER_VERSION=1.16.1
|
data/CHANGELOG
CHANGED
@@ -1,6 +1,17 @@
|
|
1
1
|
CHANGELOG
|
2
2
|
=========
|
3
3
|
|
4
|
+
2.8.2
|
5
|
+
-----
|
6
|
+
|
7
|
+
2018-08-16
|
8
|
+
|
9
|
+
This is a backwards compatible bugfix release.
|
10
|
+
|
11
|
+
* Fixed a "undefined method 'split' for nil" error with get_default_iface
|
12
|
+
that affects Vagrant 1.9 and newer.
|
13
|
+
|
14
|
+
|
4
15
|
2.8.2
|
5
16
|
-----
|
6
17
|
|
data/Gemfile
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
source 'https://rubygems.org'
|
2
2
|
require 'rubygems/version'
|
3
3
|
|
4
|
-
vagrant_branch = ENV['TEST_VAGRANT_VERSION'] || 'v2.1.
|
4
|
+
vagrant_branch = ENV['TEST_VAGRANT_VERSION'] || 'v2.1.2'
|
5
5
|
vagrant_version = nil
|
6
6
|
|
7
7
|
# Wrapping gemspec in the :plugins group causes Vagrant 1.5 and newer to
|
@@ -21,23 +21,4 @@ class VagrantHosts::Cap::Facts::Base
|
|
21
21
|
def load_facts
|
22
22
|
raise NotImplementedError
|
23
23
|
end
|
24
|
-
|
25
|
-
private
|
26
|
-
|
27
|
-
# TODO: Split this out into a shared module.
|
28
|
-
def sudo(cmd)
|
29
|
-
stdout = ''
|
30
|
-
stderr = ''
|
31
|
-
|
32
|
-
retval = machine.communicate.sudo(cmd) do |type, data|
|
33
|
-
if type == :stderr
|
34
|
-
stderr << data.chomp
|
35
|
-
else
|
36
|
-
stdout << data.chomp
|
37
|
-
end
|
38
|
-
end
|
39
|
-
|
40
|
-
{:stdout => stdout, :stderr => stderr, :retval => retval}
|
41
|
-
end
|
42
|
-
|
43
24
|
end
|
@@ -41,4 +41,24 @@ class VagrantHosts::Cap::Facts::POSIX < VagrantHosts::Cap::Facts::Base
|
|
41
41
|
|
42
42
|
default.split.last.chomp
|
43
43
|
end
|
44
|
+
|
45
|
+
private
|
46
|
+
|
47
|
+
def sudo(cmd)
|
48
|
+
stdout = ''
|
49
|
+
stderr = ''
|
50
|
+
|
51
|
+
# FIXME: The chomp operations below smell like cargo culting. I have no
|
52
|
+
# idea why we do it and it breaks on WinRM 2.x which uses PSRP
|
53
|
+
# instead of routing though the CMD shell.
|
54
|
+
retval = machine.communicate.sudo(cmd) do |type, data|
|
55
|
+
if type == :stderr
|
56
|
+
stderr << data.chomp
|
57
|
+
else
|
58
|
+
stdout << data.chomp
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
{:stdout => stdout, :stderr => stderr, :retval => retval}
|
63
|
+
end
|
44
64
|
end
|
@@ -39,4 +39,22 @@ class VagrantHosts::Cap::Facts::Windows < VagrantHosts::Cap::Facts::Base
|
|
39
39
|
default.split[-2].chomp
|
40
40
|
end
|
41
41
|
|
42
|
+
private
|
43
|
+
|
44
|
+
# FIXME: de-duplicate with posix implementation after figuring out what
|
45
|
+
# happens to newlines.
|
46
|
+
def sudo(cmd)
|
47
|
+
stdout = ''
|
48
|
+
stderr = ''
|
49
|
+
|
50
|
+
retval = machine.communicate.sudo(cmd) do |type, data|
|
51
|
+
if type == :stderr
|
52
|
+
stderr << data
|
53
|
+
else
|
54
|
+
stdout << data
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
{:stdout => stdout, :stderr => stderr, :retval => retval}
|
59
|
+
end
|
42
60
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-hosts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.8.
|
4
|
+
version: 2.8.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adrien Thebo
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2018-
|
12
|
+
date: 2018-08-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|