vagrant-zones 0.1.96 → 0.1.97

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: '08790ff565fafcf9be7f4019efe4d7cf0096e37accf7d8c463afeb7adab1ed14'
4
- data.tar.gz: ae393608d7eb853c88262466d6b571249a6d1a80133818c92cdf269c38e0bccb
3
+ metadata.gz: 6bc4c0b91b20ad53d95b7d2544e3b6766db2bb65615b5eb0d0e5196d33b7b48d
4
+ data.tar.gz: 4c134f5570b0e4fca44105f28c91a2b26291862cd5e6358dcab21e40fffadd77
5
5
  SHA512:
6
- metadata.gz: 73cd100176065cb79599347a5183167904f8db71fe4651db60f72dd67d87d98d62ffad433db78c09c75020c5611137103573ad7e338e68ea46d6fb5a95a1c751
7
- data.tar.gz: 7ba74192089545507add98990cd383c8f44b5ba7ecc4d5011613f8c9067b6ee2d41aaa805d564724e38382710a1ac25f728581d13e96e43ed1873319c99be3ab
6
+ metadata.gz: f85d4e203831861888d8359face75ff093ea82702de832b5ade9f10757bbd896bcf60f84b1f8632f766af82415a357a8a82700ef8fa18b17de1fd42f261b3426
7
+ data.tar.gz: d78d087ce49093fc843a0f1ed4a96d95d9af91451cd8846a76b8e6b02f412b0dabeeed87853ac18f2c6b5e40c7b1e81e57a8aaf5ba26711e4f8be3d3df521bfa
data/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.1.97](https://github.com/STARTcloud/vagrant-zones/compare/v0.1.96...v0.1.97) (2024-08-17)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * add destroy confirmation ([f04e30a](https://github.com/STARTcloud/vagrant-zones/commit/f04e30a3d522dd34568fe99ce6199ae771570b4b))
9
+ * it was there all along ([7355e11](https://github.com/STARTcloud/vagrant-zones/commit/7355e11f15d932c92cf6a678dc574414620992de))
10
+ * linting - add destroy confirmation ([35786fc](https://github.com/STARTcloud/vagrant-zones/commit/35786fcd404096362211a2a07b44e901b46cc295))
11
+ * linting - add destroy confirmation ([31d0140](https://github.com/STARTcloud/vagrant-zones/commit/31d0140da06c66100e78fdd9618394d32428130b))
12
+ * linting - add destroy confirmation ([30e0324](https://github.com/STARTcloud/vagrant-zones/commit/30e0324a1b0865574d3adb95f3cffbe6656bdd05))
13
+
3
14
  ## [0.1.96](https://github.com/STARTcloud/vagrant-zones/compare/v0.1.95...v0.1.96) (2024-08-17)
4
15
 
5
16
 
@@ -6,7 +6,7 @@ require 'log4r'
6
6
  module VagrantPlugins
7
7
  module ProviderZone
8
8
  # Run actions against the machine
9
- module Action
9
+ module Action # rubocop:disable Metrics/ModuleLength
10
10
  include Vagrant::Action::Builtin
11
11
  @logger = Log4r::Logger.new('vagrant_zones::action')
12
12
 
@@ -116,8 +116,17 @@ module VagrantPlugins
116
116
  # This is the action that is primarily responsible for completely freeing the resources of the underlying virtual machine.
117
117
  def self.action_destroy
118
118
  Vagrant::Action::Builder.new.tap do |b|
119
- b.use Call, IsCreated do |_env, b2|
120
- b2.use Destroy
119
+ b.use Call, IsCreated do |env1, b2|
120
+ unless env1[:result]
121
+ b2.use NotCreated
122
+ b2.use Call, DestroyConfirm do |env2, b3|
123
+ b3.use Destroy if env2[:result]
124
+ end
125
+ next
126
+ end
127
+ b2.use Call, DestroyConfirm do |env2, b3|
128
+ b3.use Destroy if env2[:result]
129
+ end
121
130
  end
122
131
  end
123
132
  end
@@ -315,7 +315,7 @@ module VagrantPlugins
315
315
  ## Manage Network Interfaces
316
316
  def network(uii, state)
317
317
  config = @machine.provider_config
318
- uii.info(I18n.t('vagrant_zones.creating_networking_interfaces')) if state == 'create'
318
+ uii.info(I18n.t('vagrant_zones.creating_networking_interfaces')) if state == 'create' && !config.on_demand_vnics
319
319
  @machine.config.vm.networks.each do |adaptertype, opts|
320
320
  case adaptertype.to_s
321
321
  when 'public_network'
@@ -2,7 +2,7 @@
2
2
 
3
3
  module VagrantPlugins
4
4
  module ProviderZone
5
- VERSION = '0.1.96'
5
+ VERSION = '0.1.97'
6
6
  NAME = 'vagrant-zones'
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-zones
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.96
4
+ version: 0.1.97
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Gilbert