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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 580ce2d6830ec3d6114e6217d2c0c290a34541fb
4
- data.tar.gz: 1c44b7ce6cea8ad07ee9d61ef3fd8e2a7992f704
3
+ metadata.gz: 2a870444e4958940d62c99dc53976515823d5626
4
+ data.tar.gz: d794239606d79b0c19e9912f9d3c261b1aa25509
5
5
  SHA512:
6
- metadata.gz: 51a54ffece7e1d6413183c5a00749519cf347c28fcd9d98530c850a15ce5f5fd0f88ffae54d99ab0a25d44dd4b24ad47004cc19796c7528381a2f73ce34ad497
7
- data.tar.gz: 9ac30514b6724f8c9ef031bdb449c0b6bd5ad1c18f9e47bb745e44de323b9f48844293e7f32dce1f82a118ca99a9fe6b119759f31f30b660f5133f3420f05125
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
- sudo_command = ""
134
- sudo_command = "sudo " if !File.writable?(conf_location)
135
-
136
- system("#{sudo_command}sed -r -e '\\\x01^# VAGRANT-BEGIN: #{mac}\x01,\\\x01^# VAGRANT-END: #{mac}\x01 d' -ibak '#{escaped_conf_location}'")
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)
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module VagrantVmwareDhcp
3
- VERSION = '0.0.1'
3
+ VERSION = '0.0.2'
4
4
  end
5
5
  end
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.1
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
data/bin/setup DELETED
@@ -1,7 +0,0 @@
1
- #!/bin/bash
2
- set -euo pipefail
3
- IFS=$'\n\t'
4
-
5
- bundle install
6
-
7
- # Do any other automated setup that you need to do here