vagrant-guests-photon 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3cc5901eaae4d0c91b67bc09621fe9628c680aea
4
- data.tar.gz: c6d18e3a9af68b16b564745d2938a3218034311f
3
+ metadata.gz: 3f068c2d0f88fbb767baf0d3e19c5a691bcd6e39
4
+ data.tar.gz: ebd485009371016f2582474a39111700d721cbb6
5
5
  SHA512:
6
- metadata.gz: 9ba90e444742d70440478f3c65610dae9267f5aefcfd57d787821b3661360d7bc65d89c8fbb4a3183da03f378ac91d03105de99c2ddc250c0e36b3b1ee3d1ded
7
- data.tar.gz: c004a45dfbe535f77eb1f034952c6835c8fb150cfa553acb01e68b778b112ba9f4420784c373306dd9c39cd4b4403b1f572d8b7c0e3d5070e7b44aea9b0b4df2
6
+ metadata.gz: 57691f75a8ab900dfb4ce87fd08bd6654267cb534336fd9ee578d5448eea6c8bb6787991e4d4d2aa13640d04b2e7eb8de71414d4377dd914fe7c99b3b92d2f6f
7
+ data.tar.gz: ab118243e154017d22d689ec7e6c45df64d78faffe92a0cbeebc09d6828f1389a93411c63cb4a8571be6a894023d5af5c8a0214741963cffea4297dae3e05bfd
@@ -1 +1 @@
1
- 2.0.0-p645
1
+ 2.2.3
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # vagrant-guests-photon [![Build Status](https://travis-ci.org/vmware/vagrant-guests-photon.svg)](https://travis-ci.org/vmware/vagrant-guests-photon) [![Coverage Status](https://coveralls.io/repos/vmware/vagrant-guests-photon/badge.svg?branch=master&service=github)](https://coveralls.io/github/vmware/vagrant-guests-photon?branch=master)
1
+ # vagrant-guests-photon [![Build Status](https://travis-ci.org/vmware/vagrant-guests-photon.svg)](https://travis-ci.org/vmware/vagrant-guests-photon) [![Coverage Status](https://coveralls.io/repos/vmware/vagrant-guests-photon/badge.svg?branch=master&service=github)](https://coveralls.io/github/vmware/vagrant-guests-photon?branch=master)[![Gem Version](https://badge.fury.io/rb/vagrant-guests-photon.svg)](https://badge.fury.io/rb/vagrant-guests-photon)
2
2
  This is a [Vagrant](http://www.vagrantup.com/) [plugin](http://docs.vagrantup.com/v2/plugins/index.html) that adds VMware Photon guest support.
3
3
 
4
4
  ## Installation
@@ -11,8 +11,9 @@ $ vagrant plugin install vagrant-guests-photon
11
11
  To build and install the plugin directly from this repo:
12
12
 
13
13
  ```
14
- $ rake build
15
- $ vagrant plugin install pkg/vagrant-guests-photon-1.0.1.gem
14
+ $ bundle install
15
+ $ bundle rake build
16
+ $ vagrant plugin install pkg/vagrant-guests-photon-1.0.2.gem
16
17
  ```
17
18
 
18
19
  You can run RSpec with:
@@ -55,7 +55,7 @@ module VagrantPlugins
55
55
 
56
56
  unit_name = find_network_file comm, iface
57
57
  comm.sudo("rm -f /etc/systemd/network/#{unit_name}")
58
-
58
+
59
59
  if network[:type] == :static
60
60
  cidr = IPAddr.new(network[:netmask]).to_cidr
61
61
  address = "%s/%s" % [network[:ip], cidr]
@@ -72,7 +72,7 @@ module VagrantPlugins
72
72
  comm.upload(temp.path, "/tmp/#{unit_name}")
73
73
  comm.sudo("mv /tmp/#{unit_name} /etc/systemd/network/")
74
74
  comm.sudo("chown root:root /etc/systemd/network/#{unit_name}")
75
- comm.sudo("chmod +r /etc/systemd/network/#{unit_name}")
75
+ comm.sudo("chmod a+r /etc/systemd/network/#{unit_name}")
76
76
  end
77
77
 
78
78
  comm.sudo("systemctl restart systemd-networkd.service")
@@ -84,7 +84,7 @@ module VagrantPlugins
84
84
  puts result
85
85
  return File.basename(result.strip)
86
86
  end
87
- return "50-vagrant-%s.network" % [iface]
87
+ return "50-vagrant-%s.network" % [iface]
88
88
  end
89
89
  end
90
90
  end
@@ -4,6 +4,6 @@
4
4
  module VagrantPlugins
5
5
  # Set version for vagrant-guests-photon gem.
6
6
  module GuestPhoton
7
- VERSION = '1.0.2'
7
+ VERSION = '1.0.3'
8
8
  end
9
9
  end
@@ -69,7 +69,7 @@ describe VagrantPlugins::GuestPhoton::Cap::ConfigureNetworks do
69
69
  communicate.should_receive(:sudo)
70
70
  .with("chown root:root /etc/systemd/network/50-vagrant-enp0s8.network")
71
71
  communicate.should_receive(:sudo)
72
- .with("chmod +r /etc/systemd/network/50-vagrant-enp0s8.network")
72
+ .with("chmod a+r /etc/systemd/network/50-vagrant-enp0s8.network")
73
73
 
74
74
  # eth2
75
75
  communicate.should_receive(:sudo).with("grep eth2 /etc/systemd/network/* | awk -F: '{print $1}' | head -n1")
@@ -84,7 +84,7 @@ describe VagrantPlugins::GuestPhoton::Cap::ConfigureNetworks do
84
84
  communicate.should_receive(:sudo)
85
85
  .with("chown root:root /etc/systemd/network/50-vagrant-eth2.network")
86
86
  communicate.should_receive(:sudo)
87
- .with("chmod +r /etc/systemd/network/50-vagrant-eth2.network")
87
+ .with("chmod a+r /etc/systemd/network/50-vagrant-eth2.network")
88
88
 
89
89
  # enp1s5
90
90
  communicate.should_receive(:sudo).with("grep enp1s5 /etc/systemd/network/* | awk -F: '{print $1}' | head -n1")
@@ -99,7 +99,7 @@ describe VagrantPlugins::GuestPhoton::Cap::ConfigureNetworks do
99
99
  communicate.should_receive(:sudo)
100
100
  .with("chown root:root /etc/systemd/network/50-vagrant-enp1s5.network")
101
101
  communicate.should_receive(:sudo)
102
- .with("chmod +r /etc/systemd/network/50-vagrant-enp1s5.network")
102
+ .with("chmod a+r /etc/systemd/network/50-vagrant-enp1s5.network")
103
103
 
104
104
  # enp1s6
105
105
  communicate.should_receive(:sudo).with("grep enp1s6 /etc/systemd/network/* | awk -F: '{print $1}' | head -n1")
@@ -114,7 +114,7 @@ describe VagrantPlugins::GuestPhoton::Cap::ConfigureNetworks do
114
114
  communicate.should_receive(:sudo)
115
115
  .with("chown root:root /etc/systemd/network/50-vagrant-enp1s6.network")
116
116
  communicate.should_receive(:sudo)
117
- .with("chmod +r /etc/systemd/network/50-vagrant-enp1s6.network")
117
+ .with("chmod a+r /etc/systemd/network/50-vagrant-enp1s6.network")
118
118
 
119
119
  communicate.should_receive(:sudo).with("systemctl restart systemd-networkd.service")
120
120
 
@@ -149,7 +149,7 @@ describe VagrantPlugins::GuestPhoton::Cap::ConfigureNetworks do
149
149
  before do
150
150
  communicate.stub(:sudo).with("ifconfig -a | grep -E '^enp|^eth' | cut -f1 -d' '")
151
151
  .and_yield(nil, interfaces)
152
- @@logger = Log4r::Logger.new("vagrant::guest::photon::configure_networks")
152
+ @@logger = Log4r::Logger.new("vagrant::guest::photon::configure_networks")
153
153
  end
154
154
 
155
155
  it 'should configure networks without enp0s9' do
@@ -168,7 +168,7 @@ describe VagrantPlugins::GuestPhoton::Cap::ConfigureNetworks do
168
168
  communicate.should_receive(:sudo)
169
169
  .with("chown root:root /etc/systemd/network/50-vagrant-enp0s8.network")
170
170
  communicate.should_receive(:sudo)
171
- .with("chmod +r /etc/systemd/network/50-vagrant-enp0s8.network")
171
+ .with("chmod a+r /etc/systemd/network/50-vagrant-enp0s8.network")
172
172
 
173
173
  # eth2
174
174
  @@logger.should_receive(:warn).with(
metadata CHANGED
@@ -1,97 +1,97 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-guests-photon
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fabio Rapposelli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-02 00:00:00.000000000 Z
11
+ date: 2016-07-05 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
  - !ruby/object:Gem::Dependency
42
42
  name: rspec-core
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '2.14'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '2.14'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rspec-expectations
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
61
  version: '2.14'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ~>
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '2.14'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec-mocks
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ~>
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
75
  version: '2.14'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ~>
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '2.14'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rubocop
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  description: Enables Vagrant to manage VMware Photon machines.
@@ -100,11 +100,11 @@ executables: []
100
100
  extensions: []
101
101
  extra_rdoc_files: []
102
102
  files:
103
- - .gitignore
104
- - .rspec
105
- - .rubocop.yml
106
- - .ruby-version
107
- - .travis.yml
103
+ - ".gitignore"
104
+ - ".rspec"
105
+ - ".rubocop.yml"
106
+ - ".ruby-version"
107
+ - ".travis.yml"
108
108
  - Gemfile
109
109
  - LICENSE
110
110
  - README.md
@@ -133,17 +133,17 @@ require_paths:
133
133
  - lib
134
134
  required_ruby_version: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - '>='
136
+ - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  required_rubygems_version: !ruby/object:Gem::Requirement
140
140
  requirements:
141
- - - '>='
141
+ - - ">="
142
142
  - !ruby/object:Gem::Version
143
143
  version: '0'
144
144
  requirements: []
145
145
  rubyforge_project:
146
- rubygems_version: 2.0.14
146
+ rubygems_version: 2.4.5.1
147
147
  signing_key:
148
148
  specification_version: 4
149
149
  summary: VMware Photon Guest Plugin for Vagrant