vagrant-zones 0.1.62 → 0.1.63

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
  SHA256:
3
- metadata.gz: f10dd005846f1b9adbc31ede92ec72a84c643161e706b8f08fa8bde0f1fd98c9
4
- data.tar.gz: 270473fcf9b7ebdf23deb97feb2a4b30ea32b225bf2091f6a3a5de7274da3070
3
+ metadata.gz: 1802fe5a452224d35f6e89dcd8ea17e7ab2838afcbb3b514c9c9e89771b871e7
4
+ data.tar.gz: a79772b9b030d28b40960a1fcbad5c906df4d60605133f7d983648828c5dbae5
5
5
  SHA512:
6
- metadata.gz: 999963a8083ab19e812968e8a587f73441da6fe4170bb562186a69130e2dadbdd6fe35d2f834f28b529a6c7778ea1ff789a08cdf2d5bf06497f3ef643ec0dedc
7
- data.tar.gz: ae0f5f78122722af53cde1f0cdcc51abce48371c58f4753245a4e2260231ee29cd932614d9b5511cbad6701f483fc070ec6b922090d1a04738841914277828ca
6
+ metadata.gz: '007288d8554df476862fc858b8942f9a41e8d7f5dc02fecf3e4c07111c3f50afaf54485a8cb15d77ac293960d4325a4a5ae50b980a176cd1be5daf1c1a7adf2d'
7
+ data.tar.gz: 6be60c7b07898171fb210522c3f6fbefef9c9515c8b8af6280ace6d0f5211b4d6fa36416a6a24fb549589400473a6c7dff38e67bc3e5c9c9d37654358ccaa8cd
data/CHANGELOG.md CHANGED
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.1.63](https://github.com/STARTcloud/vagrant-zones/compare/v0.1.62...v0.1.63) (2023-01-06)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * fubylint ([bcb4e5b](https://github.com/STARTcloud/vagrant-zones/commit/bcb4e5bf6a1a74e773c0757f19531bd739b83676))
9
+ * get_ipaddress ([4d59a77](https://github.com/STARTcloud/vagrant-zones/commit/4d59a77c7b837259d2c843ddfff81a0442a62f6e))
10
+ * get_ipaddress ([267aea5](https://github.com/STARTcloud/vagrant-zones/commit/267aea5f96be8ed443e5dbe8751fe0e3f7a54261))
11
+ * ruby lint ([4b82529](https://github.com/STARTcloud/vagrant-zones/commit/4b82529df3e2d76f60e7f480c3226a3667081117))
12
+
3
13
  ## [0.1.62](https://github.com/STARTcloud/vagrant-zones/compare/v0.1.61...v0.1.62) (2023-01-06)
4
14
 
5
15
 
@@ -98,7 +98,7 @@ module VagrantPlugins
98
98
  ## Run commands over SSH instead of ZLogin
99
99
  def ssh_run_command(uii, command)
100
100
  config = @machine.provider_config
101
- ip = get_ip_address(uii, 'runsshcommmand')
101
+ ip = get_ip_address('runsshcommmand')
102
102
  user = user(@machine)
103
103
  key = userprivatekeypath(@machine).to_s
104
104
  port = sshport(@machine).to_s
@@ -177,9 +177,8 @@ module VagrantPlugins
177
177
  end
178
178
 
179
179
  # This filters the VM usage for VNIC Naming Purposes
180
- def vtype(uii)
180
+ def vtype(_uii)
181
181
  config = @machine.provider_config
182
- uii.info(I18n.t('vagrant_zones.vtype')) if config.debug
183
182
  case config.vm_type
184
183
  when /template/
185
184
  '1'
@@ -260,14 +259,14 @@ module VagrantPlugins
260
259
  end
261
260
 
262
261
  ## If DHCP and Zlogin, get the IP address
263
- def get_ip_address(uii, _function)
262
+ def get_ip_address(_function)
264
263
  config = @machine.provider_config
265
264
  name = @machine.name
266
265
  @machine.config.vm.networks.each do |_adaptertype, opts|
267
266
  responses = []
268
267
  nic_type = nictype(opts)
269
268
  if opts[:dhcp4] && opts[:managed]
270
- vnic_name = "vnic#{nic_type}#{vtype(uii)}_#{config.partition_id}_#{opts[:nic_number]}"
269
+ vnic_name = "vnic#{nic_type}#{vtype}_#{config.partition_id}_#{opts[:nic_number]}"
271
270
  PTY.spawn("pfexec zlogin -C #{name}") do |zlogin_read, zlogin_write, pid|
272
271
  command = "ip -4 addr show dev #{vnic_name} | head -n -1 | tail -1 | awk '{ print $2 }' | cut -f1 -d\"/\" \n"
273
272
  zlogin_read.expect(/\n/) { zlogin_write.printf(command) }
@@ -2,7 +2,7 @@
2
2
 
3
3
  module VagrantPlugins
4
4
  module ProviderZone
5
- VERSION = '0.1.62'
5
+ VERSION = '0.1.63'
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.62
4
+ version: 0.1.63
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Gilbert