vagrant-zones 0.1.80 → 0.1.82

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: 3e4db8b30cfb01832a358892c8f5403ade6922752b9424ab0fe4fdcab1053cee
4
- data.tar.gz: 316a466603bc8298535c2407e1f8fa267b754f33e6d6ee9ab20e5d70a9bd5fec
3
+ metadata.gz: bd64fc86cb10963251311de30fcda77a27a627391457e9f5780a106dd247c3d5
4
+ data.tar.gz: 5f4939556bcf17c488a5e8c375a6230f234057226b38419c5b2c3ae7e14ee7c2
5
5
  SHA512:
6
- metadata.gz: 3ca88c15099e24fc67f0338a936eb9fbae7b02c7f958a0c973e305bd812415a6794826dbd42b4ab4a9413c59ad05f899c127d2593d4382ece609852c5734425e
7
- data.tar.gz: d03f36142cc2bca14ccacfbcc29d7e4b2903e3ddeb3dddf7a6ab25eb8acf21b01cfbaa8dd736142e24320726fb9cadd75b8e20e24b82cb6c7db138a0db843633
6
+ metadata.gz: 03b893f25862c421061d6e3b0af5b638c910a554839961aec3a7582be6505143ebf69e7e467e0b50a4cd3cf97f8c2d18fb9907d05ef5d8b756aebc09a014834e
7
+ data.tar.gz: 410fc3fcd792482ce8859215d1d50497dd439c1d405027a29e58380a5bac03ce246a118bd9201aa80705d975f37d4b06529bc5e4d5e823c8447502ce9092d89f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.1.82](https://github.com/STARTcloud/vagrant-zones/compare/v0.1.81...v0.1.82) (2023-12-12)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * spacing that was driving me mad ([0995585](https://github.com/STARTcloud/vagrant-zones/commit/09955852bb2f45b11b0c67730efb547ec794ec70))
9
+
10
+ ## [0.1.81](https://github.com/STARTcloud/vagrant-zones/compare/v0.1.80...v0.1.81) (2023-12-12)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * double spacing ([570ae2e](https://github.com/STARTcloud/vagrant-zones/commit/570ae2e2d5f80df885eeb5cb1565f3909269be80))
16
+ * rubocop caught some junk ([ee8cbb1](https://github.com/STARTcloud/vagrant-zones/commit/ee8cbb15f7f7e3ea918cdc2a4246342aa16a0539))
17
+ * rubocop caught some junk ([25e9543](https://github.com/STARTcloud/vagrant-zones/commit/25e95432a904aee2c73e6d0b67b00f61c40ce576))
18
+ * rubocop falsepositive ([1f31eb0](https://github.com/STARTcloud/vagrant-zones/commit/1f31eb013cceb3bf7b3f3ef5fc8dfaad74b21559))
19
+
3
20
  ## [0.1.80](https://github.com/STARTcloud/vagrant-zones/compare/v0.1.79...v0.1.80) (2023-12-12)
4
21
 
5
22
 
@@ -49,7 +49,7 @@ module VagrantPlugins
49
49
  # Add the available subcommands as separators in order to print them
50
50
  # out as well.
51
51
  keys = []
52
- @subcommands.each_key { |key| keys << key.to_s }
52
+ @subcommands.each { |(key, _value)| keys << key.to_s }
53
53
  keys.sort.each do |key|
54
54
  subopts.separator " #{key}"
55
55
  end
@@ -43,7 +43,7 @@ module VagrantPlugins
43
43
  # Add the available subcommands as separators in order to print them
44
44
  # out as well.
45
45
  keys = []
46
- @subcommands.each_key { |key| keys << key.to_s }
46
+ @subcommands.each { |(key, _value)| keys << key.to_s }
47
47
  keys.sort.each do |key|
48
48
  subopts.separator " #{key}"
49
49
  end
@@ -52,7 +52,7 @@ module VagrantPlugins
52
52
  # Add the available subcommands as separators in order to print them
53
53
  # out as well.
54
54
  keys = []
55
- @subcommands.each_key { |key| keys << key.to_s }
55
+ @subcommands.each { |(key, _value)| keys << key.to_s }
56
56
  keys.sort.each do |key|
57
57
  subopts.separator " #{key}"
58
58
  end
@@ -55,7 +55,7 @@ module VagrantPlugins
55
55
  # Add the available subcommands as separators in order to print them
56
56
  # out as well.
57
57
  keys = []
58
- @subcommands.each_key { |key| keys << key.to_s }
58
+ @subcommands.each { |(key, _value)| keys << key.to_s }
59
59
 
60
60
  keys.sort.each do |key|
61
61
  subopts.separator " #{key}"
@@ -266,7 +266,7 @@ module VagrantPlugins
266
266
  alcheck = 'login:' if config.alcheck.nil?
267
267
  pcheck = 'Password:'
268
268
 
269
- @machine.config.vm.networks.each_value do |opts|
269
+ @machine.config.vm.networks.each do |(_adaptertype, opts)|
270
270
  ip = nil
271
271
  if opts[:dhcp4] && opts[:managed]
272
272
  vnic_name = "vnic#{nictype(opts)}#{vtype(config)}_#{config.partition_id}_#{opts[:nic_number]}"
@@ -527,7 +527,7 @@ module VagrantPlugins
527
527
  netplan1 = %(network:\n version: 2\n ethernets:\n #{vnic_name}:\n match:\n macaddress: #{mac}\n)
528
528
  netplan2 = %( dhcp-identifier: mac\n dhcp4: #{opts[:dhcp4]}\n dhcp6: #{opts[:dhcp6]}\n)
529
529
  netplan3 = %( set-name: #{vnic_name}\n addresses: [#{ip}/#{shrtsubnet}]\n routes:\n - to: default\n via: #{defrouter}\n)
530
- netplan4 = %( nameservers:\n addresses: [#{servers}] ) unless opts[:dns].nil?
530
+ netplan4 = %( nameservers:\n addresses: [#{servers}]) unless opts[:dns].nil?
531
531
  netplan = netplan1 + netplan2 + netplan3 + netplan4
532
532
  cmd = "echo -e '#{netplan}' | sudo tee /etc/netplan/#{vnic_name}.yaml && chmod 400 /etc/netplan/#{vnic_name}.yaml"
533
533
  uii.info(I18n.t('vagrant_zones.netplan_applied_static') + "/etc/netplan/#{vnic_name}.yaml") if ssh_run_command(uii, cmd)
@@ -1144,7 +1144,7 @@ module VagrantPlugins
1144
1144
  netplan3 = %( set-name: #{vnic_name}\n addresses: [#{ip}/#{shrtsubnet}]\n)
1145
1145
  netplan3 = %( set-name: #{vnic_name}\n) if opts[:dhcp4]
1146
1146
  netplan4 = %( routes:\n - to: default\n via: #{defrouter}\n)
1147
- netplan5 = %( nameservers:\n addresses: [#{servers}] ) unless opts[:dns].nil?
1147
+ netplan5 = %( nameservers:\n addresses: [#{servers}]) unless opts[:dns].nil?
1148
1148
  netplan = netplan1 + netplan2 + netplan3 + netplan5 if opts[:gateway].nil?
1149
1149
  netplan = netplan1 + netplan2 + netplan3 + netplan4 + netplan5 unless opts[:gateway].nil?
1150
1150
  cmd = "echo '#{netplan}' > /etc/netplan/#{vnic_name}.yaml && chmod 400 /etc/netplan/#{vnic_name}.yaml"
@@ -1627,7 +1627,7 @@ module VagrantPlugins
1627
1627
  # name = @machine.name
1628
1628
  uii.info(I18n.t('vagrant_zones.cron_entries'))
1629
1629
  h = { h: 'hourly', d: 'daily', w: 'weekly', m: 'monthly' }
1630
- h.each_value do |d|
1630
+ h.each do |(_k, d)|
1631
1631
  next unless opts[:list] == d || opts[:list] == 'all'
1632
1632
 
1633
1633
  uii.info(cronjobs[d.to_sym]) unless cronjobs[d.to_sym].nil?
@@ -1642,7 +1642,7 @@ module VagrantPlugins
1642
1642
  rmcr = "#{sc} -l | grep -v "
1643
1643
  h = { h: 'hourly', d: 'daily', w: 'weekly', m: 'monthly' }
1644
1644
  uii.info(I18n.t('vagrant_zones.cron_delete'))
1645
- h.each_value do |d|
1645
+ h.each do |(_k, d)|
1646
1646
  next unless opts[:delete] == d || opts[:delete] == 'all'
1647
1647
 
1648
1648
  cj = cronjobs[d.to_sym].to_s.gsub('*', '\*')
@@ -2,7 +2,7 @@
2
2
 
3
3
  module VagrantPlugins
4
4
  module ProviderZone
5
- VERSION = '0.1.80'
5
+ VERSION = '0.1.82'
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.80
4
+ version: 0.1.82
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Gilbert