vagrant-hostsupdater 0.0.8 → 0.0.9

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
  SHA512:
3
- metadata.gz: c56f591feb65c66cde8837ca645e19143fcbdb3b015d726725003d7cae3df670949708cb63c5749216b5683d4e24b7d020570093a1a33245494c941c4283ef00
4
- data.tar.gz: 958b809be3ea034db7872553836c8d232620be3677e8992202eca4975df942ef0f4bd63d2301b8c32a05939a6fe4b7c50d10c747d6cbada3ab4ebfa56555e335
3
+ data.tar.gz: eeaf787fa373caeac2ec91a79bcfbf440f10e2b9e3a3f484f7167b3615748ec569cd8ec2d011457517abb387edec17f2ea1463fd863e12ee6af0d402133bce20
4
+ metadata.gz: b78576f818d0b6be0554a4f3193e5a69be693d5d6faa984f1721eda82dca385ee41fd8e83a6c76b328af76eb382168aa64528abf2ce460a14e220f84fb76ecde
5
5
  SHA1:
6
- metadata.gz: 2a7afc721f01110c8c34b3e35fb33efcf3b27893
7
- data.tar.gz: bbc27f75779ed6de5b56f04224096d3bb40f42ff
6
+ data.tar.gz: 549469fc86d2ef0b46ff2e0cefc5f3d4312e1a7f
7
+ metadata.gz: 3db0cc1bd1ace793714da5c5a08da09f39a574e4
data/README.md CHANGED
@@ -11,6 +11,9 @@ By setting the remove\_on\_suspend option, you can have them removed on **suspen
11
11
 
12
12
  ## Versions
13
13
 
14
+ ### 0.0.9
15
+ * bugfix: now not trying to remove anything if no machine id is given
16
+
14
17
  ### 0.0.8
15
18
  * trying to use proper windows hosts file
16
19
 
@@ -43,6 +43,10 @@ module VagrantPlugins
43
43
  end
44
44
 
45
45
  def removeHostEntries
46
+ if !@machine.id
47
+ @ui.warn "No machine id, nothing removed from #@@hosts_path"
48
+ return
49
+ end
46
50
  file = File.open(@@hosts_path, "rb")
47
51
  hostsContents = file.read
48
52
  uuid = @machine.id
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module HostsUpdater
3
- VERSION = "0.0.8"
3
+ VERSION = "0.0.9"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-hostsupdater
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Falk K\xC3\xBChnel"