vagrant-vmware-dhcp 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vagrant-vmware-dhcp/action/config_dhcp.rb +11 -4
- data/lib/vagrant-vmware-dhcp/version.rb +1 -1
- metadata +2 -7
- data/CODE_OF_CONDUCT.md +0 -13
- data/bin/console +0 -14
- data/bin/setup +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a870444e4958940d62c99dc53976515823d5626
|
4
|
+
data.tar.gz: d794239606d79b0c19e9912f9d3c261b1aa25509
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a01346653754d4e6109f1fe60b91bb3a0803d92d188a5e297c20d85a9c867d5e862cb1bc8afa4bebbe711b5b330d04714261d4defbca2fd8c7f1b462eb9b7d70
|
7
|
+
data.tar.gz: 440f762251a8db57d251439b2111bf4ed1c3eaff9f20398793616c847a1d92f752d04b0188c44e4f60f54c4cc8a47db51d5f8ce30245bbc2933eaab1d82e88a4
|
@@ -130,10 +130,17 @@ module VagrantPlugins
|
|
130
130
|
|
131
131
|
mac = network[:mac]
|
132
132
|
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
133
|
+
command = []
|
134
|
+
command << "sudo" if !File.writable?(conf_location)
|
135
|
+
command += [
|
136
|
+
"sed", "-E", "-e",
|
137
|
+
"/^# VAGRANT-BEGIN: #{mac}/," +
|
138
|
+
"/^# VAGRANT-END: #{mac}/ d",
|
139
|
+
"-ibak",
|
140
|
+
conf_location
|
141
|
+
]
|
142
|
+
|
143
|
+
system(*command)
|
137
144
|
end
|
138
145
|
|
139
146
|
def write_dhcpd_conf(network)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vagrant-vmware-dhcp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Israel Shirk
|
@@ -41,21 +41,16 @@ dependencies:
|
|
41
41
|
description: Sets up VMware's DHCP server to serve correct IP addresses to vagrant
|
42
42
|
guests.
|
43
43
|
email: israelshirk@gmail.com
|
44
|
-
executables:
|
45
|
-
- console
|
46
|
-
- setup
|
44
|
+
executables: []
|
47
45
|
extensions: []
|
48
46
|
extra_rdoc_files: []
|
49
47
|
files:
|
50
48
|
- .gitignore
|
51
49
|
- .travis.yml
|
52
|
-
- CODE_OF_CONDUCT.md
|
53
50
|
- Gemfile
|
54
51
|
- LICENSE
|
55
52
|
- README.md
|
56
53
|
- Rakefile
|
57
|
-
- bin/console
|
58
|
-
- bin/setup
|
59
54
|
- lib/vagrant-vmware-dhcp.rb
|
60
55
|
- lib/vagrant-vmware-dhcp/action.rb
|
61
56
|
- lib/vagrant-vmware-dhcp/action/config_dhcp.rb
|
data/CODE_OF_CONDUCT.md
DELETED
@@ -1,13 +0,0 @@
|
|
1
|
-
# Contributor Code of Conduct
|
2
|
-
|
3
|
-
As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
|
4
|
-
|
5
|
-
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, or religion.
|
6
|
-
|
7
|
-
Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
|
8
|
-
|
9
|
-
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
|
10
|
-
|
11
|
-
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
|
12
|
-
|
13
|
-
This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
|
data/bin/console
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require "bundler/setup"
|
4
|
-
require "vagrant/vmware/dhcp"
|
5
|
-
|
6
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
-
# with your gem easier. You can also use a different console, if you like.
|
8
|
-
|
9
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
-
# require "pry"
|
11
|
-
# Pry.start
|
12
|
-
|
13
|
-
require "irb"
|
14
|
-
IRB.start
|