vagrant-vmck 0.3.1 → 0.3.2

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
  SHA256:
3
- metadata.gz: a03f29802506d5a3e46a606c3540a81ac6d3f7f0ff072b172d050372c99ef91b
4
- data.tar.gz: 436c41e088e7bb39ba1823de8ca4a6a333c7be8c8ae0bdaea1ca2ed099e884b7
3
+ metadata.gz: 946e9083729b16d5cced66a3245f91792b4c3df9c65aefd54d56d66afa770744
4
+ data.tar.gz: a5b096ae4a356ba21aad5d3e4c42f3e97e01aa437408c8f09bab4c1c820ebf30
5
5
  SHA512:
6
- metadata.gz: b321bd0e0101a82955e238dffa0793b0e72b92e4fe2596148435a8ecacfec012ab642741006dddbda030abbd93e83af5a1d1f3c5a109c9e5dcb9371c8194a3db
7
- data.tar.gz: a959b5e810e7b81d1e9f597c4cb8766d377440085ece0041e5612403cba3acb44e671edeb597a9fef9ef0e3ad38a378cc13af8c09cb0326151478c7e3b567460
6
+ metadata.gz: '0009bbd31115a4f64d7f9c3057211c971457b86dff5d3d8f641ad1049552ccff6beb801bfed993800660cd7170823c3b729250fe1d59cf43a6f3a8cfddd7e244'
7
+ data.tar.gz: aac475c79a795ca4ee5bda6a4c6208f401aa42e83aca7c0c0fcbdb2bcac19e45ee85b5d0dedc88e3c65bf4962130d9368cd70dc34d07c83cfe4081e422f94ad2
@@ -20,6 +20,7 @@ Vagrant.configure("2") do |config|
20
20
  vmck.vmck_url = ENV['VMCK_URL']
21
21
  vmck.memory = 512
22
22
  vmck.cpus = 1
23
+ vmck.restrict_network = false
23
24
  vmck.storage = ENV['VMCK_STORAGE']
24
25
  vmck.name = ENV['VMCK_NAME']
25
26
  end
@@ -22,6 +22,7 @@ module VagrantPlugins
22
22
  'image_path': env[:machine].provider_config.image_path,
23
23
  'storage': env[:machine].provider_config.storage,
24
24
  'name': env[:machine].provider_config.name,
25
+ 'restrict_network': env[:machine].provider_config.restrict_network,
25
26
  }
26
27
  id = client.create(options)['id'].to_s
27
28
  else
@@ -18,6 +18,7 @@ module VagrantPlugins
18
18
  req.url(path)
19
19
  if data
20
20
  req.headers['Content-Type'] = 'application/json'
21
+ @logger.info "Request body: #{data}"
21
22
  req.body = JSON.generate(data)
22
23
  end
23
24
  end
@@ -8,6 +8,7 @@ module VagrantPlugins
8
8
  attr_accessor :image_path
9
9
  attr_accessor :storage
10
10
  attr_accessor :name
11
+ attr_accessor :restrict_network
11
12
 
12
13
  def initialize
13
14
  @vmck_url = UNSET_VALUE
@@ -17,6 +18,7 @@ module VagrantPlugins
17
18
  @image_path = UNSET_VALUE
18
19
  @storage = UNSET_VALUE
19
20
  @name = UNSET_VALUE
21
+ @restrict_network = UNSET_VALUE
20
22
  end
21
23
 
22
24
  def finalize!
@@ -27,6 +29,7 @@ module VagrantPlugins
27
29
  @image_path = 'imgbuild-master.qcow2.tar.gz' if @image_path == UNSET_VALUE
28
30
  @storage = nil if @storage == UNSET_VALUE
29
31
  @name = 'default' if @name == UNSET_VALUE
32
+ @restrict_network = false if @restrict_network == UNSET_VALUE
30
33
  end
31
34
 
32
35
  end
@@ -1,5 +1,5 @@
1
1
  module VagrantPlugins
2
2
  module Vmck
3
- VERSION = "0.3.1"
3
+ VERSION = "0.3.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-vmck
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Morega
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-10-14 00:00:00.000000000 Z
11
+ date: 2019-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday