vagrant-dotvm 0.15.1 → 0.16.0

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: 8acdcba6a48ad73d20683876dd80e5ebb211ec7d
4
- data.tar.gz: 4a02d939515848c2d86d6ffe2cab1344b6fc8492
3
+ metadata.gz: 1f0db930d6a40bd79d357345fc1a7894a518802c
4
+ data.tar.gz: c870d76bc7eec160fe1797b167015088dc4ae4af
5
5
  SHA512:
6
- metadata.gz: 25a043fca55ee58770a4beb6d8153da6eb2f34d1ea1ff16085493fc7630d83127eda813b13dd323e81a26f34e0ab854b3cb12f595420050c2ac38cd82d7e488c
7
- data.tar.gz: e2eca1562641431191873446ccf33816f35ca501acd5938c2ae21ff6e5cfa09ba27e0409d20201f8ee3b5a384fdbab9c72ed695190f8b16c94ef81445f8b3c53
6
+ metadata.gz: 296b16570f1ba5931563c0fc9f2c4c3330ba9d986bc557503aa8bacd780a3f983ae31e11ca5abbe90f2a2511a344b9b596b920fbca6cc549ce98b18bdb047c1a
7
+ data.tar.gz: e4adcc2af39bc9501943bdaa11736ee18cca1f4e6145d5bfd210375d40dff6cab0ece5b081569bc9df96f3dabb0171f0888e00e17216b7bea0a27ad1f72dcdd0
@@ -20,11 +20,11 @@ module VagrantPlugins
20
20
  machine.vm.post_up_message = machine_cfg[:post_up_message]
21
21
 
22
22
  machine.vm.provider "virtualbox" do |vb|
23
- vb.customize ["modifyvm", :id, "--memory", machine_cfg[:memory]]
24
- vb.customize ["modifyvm", :id, "--cpus", machine_cfg[:cpus]]
25
- vb.customize ["modifyvm", :id, "--cpuexecutioncap", machine_cfg[:cpucap]]
23
+ vb.customize ["modifyvm", :id, "--memory", machine_cfg[:memory]] unless machine_cfg[:memory].nil?
24
+ vb.customize ["modifyvm", :id, "--cpus", machine_cfg[:cpus]] unless machine_cfg[:cpus].nil?
25
+ vb.customize ["modifyvm", :id, "--cpuexecutioncap", machine_cfg[:cpucap]] unless machine_cfg[:cpucap].nil?
26
26
  vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
27
- vb.customize ["modifyvm", :id, "--natnet1", machine_cfg[:natnet]]
27
+ vb.customize ["modifyvm", :id, "--natnet1", machine_cfg[:natnet]] unless machine_cfg[:natnet].nil?
28
28
  end
29
29
 
30
30
  machine_cfg[:networks].each do |net|
@@ -39,11 +39,11 @@ module VagrantPlugins
39
39
  :nick => machine["nick"],
40
40
  :name => machine["name"],
41
41
  :box => machine["box"],
42
- :memory => coalesce(machine["memory"], Defaults::MEMORY),
43
- :cpus => coalesce(machine["cpus"], Defaults::CPUS),
44
- :cpucap => coalesce(machine["cpucap"], Defaults::CPUCAP),
42
+ :memory => machine["memory"],
43
+ :cpus => machine["cpus"],
44
+ :cpucap => machine["cpucap"],
45
45
  :primary => coalesce(machine["primary"], false),
46
- :natnet => coalesce(machine["natnet"], Defaults::NATNET),
46
+ :natnet => machine["natnet"],
47
47
  :networks => [],
48
48
  :routes => [],
49
49
  :provision => [],
@@ -1,10 +1,6 @@
1
1
  module VagrantPlugins
2
2
  module Dotvm
3
3
  class Defaults
4
- MEMORY = 1024
5
- CPUS = 1
6
- CPUCAP = 100
7
- NATNET = "192.168.88.0/24"
8
4
  NET = :private_network
9
5
  NET_TYPE = "static"
10
6
  NETMASK = "255.255.255.0"
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Dotvm
3
- VERSION = "0.15.1"
3
+ VERSION = "0.16.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-dotvm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.1
4
+ version: 0.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Krzysztof Magosa