vagrant-zones 0.1.61 → 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: c6b5a171b71e949148f78aff5c9fc4af628cfd2688cd82f9bb33bf82c2e84325
4
- data.tar.gz: 5d358efaa5ab2651ff1e4fca66a1fac510753ce7ddeb2b6b972847dea6552c41
3
+ metadata.gz: 1802fe5a452224d35f6e89dcd8ea17e7ab2838afcbb3b514c9c9e89771b871e7
4
+ data.tar.gz: a79772b9b030d28b40960a1fcbad5c906df4d60605133f7d983648828c5dbae5
5
5
  SHA512:
6
- metadata.gz: 4ea8709394a12c95af6f42d1efe95ed8f65049dad3b88f25827f8dbf6af4b83c86f4328c708147f9e3d140dcde0a011e77790102581e10563c5df8ff42d78c74
7
- data.tar.gz: 0db5f95b05b8069d45f79d5ead85a39afd158a8711e2565697f64368b50a6ae7ae2481cf342c34282ff77695da16b4648c5ec685750ed4e782ee5ae84b3045c4
6
+ metadata.gz: '007288d8554df476862fc858b8942f9a41e8d7f5dc02fecf3e4c07111c3f50afaf54485a8cb15d77ac293960d4325a4a5ae50b980a176cd1be5daf1c1a7adf2d'
7
+ data.tar.gz: 6be60c7b07898171fb210522c3f6fbefef9c9515c8b8af6280ace6d0f5211b4d6fa36416a6a24fb549589400473a6c7dff38e67bc3e5c9c9d37654358ccaa8cd
data/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
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
+
13
+ ## [0.1.62](https://github.com/STARTcloud/vagrant-zones/compare/v0.1.61...v0.1.62) (2023-01-06)
14
+
15
+
16
+ ### Bug Fixes
17
+
18
+ * dhcp natnic ([e0f584d](https://github.com/STARTcloud/vagrant-zones/commit/e0f584d4cd85dd84aeb4a192d9d99d12cb993051))
19
+ * ruby lint ([718c209](https://github.com/STARTcloud/vagrant-zones/commit/718c2096d2ac37a44a92234901ca7a73664cd088))
20
+ * trailing whitespace ([e1226d1](https://github.com/STARTcloud/vagrant-zones/commit/e1226d172fd637c26cb47d1c606deae4fd7eef89))
21
+
3
22
  ## [0.1.61](https://github.com/STARTcloud/vagrant-zones/compare/v0.1.60...v0.1.61) (2022-12-10)
4
23
 
5
24
 
@@ -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'
@@ -267,7 +266,7 @@ module VagrantPlugins
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) }
@@ -5,54 +5,67 @@ require 'vagrant'
5
5
  module VagrantPlugins
6
6
  module ProviderZone
7
7
  module Errors
8
+ # Namespace for Vagrant Zones Errors
8
9
  class VagrantZonesError < Vagrant::Errors::VagrantError
9
10
  error_namespace('vagrant_zones.errors')
10
11
  end
11
12
 
13
+ # System Check Results
12
14
  class SystemVersionIsTooLow < VagrantZonesError
13
15
  error_key(:system_version_too_low)
14
16
  end
15
17
 
18
+ # Compatability Check Tool
16
19
  class MissingCompatCheckTool < VagrantZonesError
17
20
  error_key(:missing_compatability_check_tool)
18
21
  end
19
22
 
23
+ # Missing Bhyve
20
24
  class MissingBhyve < VagrantZonesError
21
25
  error_key(:missing_bhyve)
22
26
  end
23
27
 
28
+ # HasNoRootPrivilege
24
29
  class HasNoRootPrivilege < VagrantZonesError
25
30
  error_key(:has_no_root_privilege)
26
31
  end
27
32
 
33
+ # ExecuteError
28
34
  class ExecuteError < VagrantZonesError
29
35
  error_key(:execute_error)
30
36
  end
31
37
 
38
+ # TimeoutError
32
39
  class TimeoutError < VagrantZonesError
33
40
  error_key(:timeout_error)
34
41
  end
35
42
 
43
+ # VirtualBoxRunningConflictDetected
36
44
  class VirtualBoxRunningConflictDetected < VagrantZonesError
37
45
  error_key(:virtual_box_running_conflict_detected)
38
46
  end
39
47
 
48
+ # NotYetImplemented
40
49
  class NotYetImplemented < VagrantZonesError
41
50
  error_key(:not_yet_implemented)
42
51
  end
43
52
 
53
+ # TimeoutHalt
44
54
  class TimeoutHalt < VagrantZonesError
45
55
  error_key(:halt_timeout)
46
56
  end
47
57
 
58
+ # InvalidbhyveBrand
48
59
  class InvalidbhyveBrand < VagrantZonesError
49
60
  error_key(:invalidbhyve_brand)
50
61
  end
51
62
 
63
+ # InvalidLXBrand
52
64
  class InvalidLXBrand < VagrantZonesError
53
65
  error_key(:invalidLX_brand)
54
66
  end
55
67
 
68
+ # ConsoleFailed
56
69
  class ConsoleFailed < VagrantZonesError
57
70
  error_key(:console_failed_exit)
58
71
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  module VagrantPlugins
4
4
  module ProviderZone
5
- VERSION = '0.1.61'
5
+ VERSION = '0.1.63'
6
6
  NAME = 'vagrant-zones'
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-zones
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.61
4
+ version: 0.1.63
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Gilbert
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-10 00:00:00.000000000 Z
11
+ date: 2023-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: i18n