vagrant-boot2docker 0.0.5 → 0.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 860b150978c8cdc43d8e228c15cfbb07c77c60cc
4
- data.tar.gz: 55434b7698a764bb3d19f5eba7bf2142feaeb6b8
3
+ metadata.gz: a713ef264aa950c3a6e01f2369602408898694a5
4
+ data.tar.gz: 2bb9f5673b0af3401149c3a42ef06c3130fe4b55
5
5
  SHA512:
6
- metadata.gz: ca7cf55df1121f265afb0f5950ae3da346ddc1705cf5061fcd97da5284ccd89c22e06304785117ab163daedfeac27f63b4516faa6efce1c2649a83a802ef1ba8
7
- data.tar.gz: 97fc2c1ca6af81e1d28fc719bb9366b6e3f4020e9742cf3f85abfacf351abd526ad4927ab2349b6b5896716afeda75dbfb283a7aee765464de6fe7a6fbb87d77
6
+ metadata.gz: 12836adae8a31a5d68ed85248df502c188160f9b4180ec8a3981eb778d0b7f3b0957d1917c32cdc06c4111688246c41a0defa935d6140d02bc15744141fe5a10
7
+ data.tar.gz: a40e2e0b4fedd2da08f78426aba7fcb410efde156a93373a9eed6a993524c98707cd9b18cd4e596b7c99860f0be06a68c4ef1b7ab6075ddb621261c313f294ff
@@ -9,9 +9,10 @@ module VagrantPlugins
9
9
  networks.each do |n|
10
10
  if n.key?("ip")
11
11
  ifc = "/sbin/ifconfig eth#{n[:interface]}"
12
+ iface = "eth#{n[:interface]}"
12
13
  broadcast = (IPAddr.new(n[:ip]) | (~ IPAddr.new(n[:netmask]))).to_s
13
14
  # First kill the udhcp client for this interface
14
- comm.sudo("kill `ps -ef |grep dhcp | grep eth#{n[:interface]} | grep -v grep | tr -s ' ' | cut -d' ' -f2`")
15
+ comm.sudo("ps -ef |grep dhcp | grep #{iface} | grep -v grep | tr -s ' ' | cut -d' ' -f2| xargs kill")
15
16
  comm.sudo("#{ifc} down")
16
17
  comm.sudo("#{ifc} #{n[:ip]} netmask #{n[:netmask]} broadcast #{broadcast}")
17
18
  comm.sudo("#{ifc} up")
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Boot2docker
3
- VERSION = "0.0.5"
3
+ VERSION = "0.0.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-boot2docker
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Faisal P