enfcli 3.11.0.pre.alpha → 3.12.0.pre.alpha
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/enfcli/commands/captive.rb +12 -2
- data/lib/enfcli/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f979f06a9f25dad8887fc5260713707ad3c868dec6ce41b9e1b5abe90a6191c6
|
4
|
+
data.tar.gz: ccb74ba53cd0b5dd3762057cc4999163efeee366bf6cb7d57b070830b3b786a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5329e56ea4089c3421c5f23607f992017d88bccf96080a4b44f6b97ccad0e70f2d110f767cda0210704d06191d697e504613509a30c4b3a9adb5cd7ea16cc994
|
7
|
+
data.tar.gz: 4bd293cd5e9d96b23833bc95736811ef853cff7c96c52c4f7d246dd46b53fb94e8a6783b2e6b418f98c6cb1f18eca1016633a9217d0b6fe401fa304837e7aeab
|
data/Gemfile.lock
CHANGED
@@ -110,9 +110,12 @@ module EnfCli
|
|
110
110
|
|
111
111
|
desc 'update-wifi-configuration',
|
112
112
|
'Update an existing wifi configuration.'
|
113
|
-
method_option :'wifi-id',
|
113
|
+
method_option :'wifi-id', type: :string,
|
114
|
+
required: true,
|
115
|
+
banner: 'WIFI-ID',
|
114
116
|
desc: 'WIFI-ID is the UUID of the wifi profile'
|
115
|
-
method_option :'wifi-config-file', type: :string,
|
117
|
+
method_option :'wifi-config-file', type: :string,
|
118
|
+
required: true,
|
116
119
|
banner: '<file>',
|
117
120
|
desc: '<file> is JSON file with ' \
|
118
121
|
'parameters required for ' \
|
@@ -147,6 +150,8 @@ module EnfCli
|
|
147
150
|
desc: 'MAC address 4'
|
148
151
|
method_option :'profile-id', type: :string, default: nil, banner: 'PROFILE_ID',
|
149
152
|
desc: 'UUID of the profile that the device will use. The profile must already exist.'
|
153
|
+
method_option :model, type: :string, default: nil, banner: 'MODEL',
|
154
|
+
desc: 'Model identifier of the device'
|
150
155
|
def create_device
|
151
156
|
try_with_rescue_in_session do
|
152
157
|
new_device_hash = {
|
@@ -176,6 +181,9 @@ module EnfCli
|
|
176
181
|
new_device_hash[:profile] = profile_hash
|
177
182
|
end
|
178
183
|
|
184
|
+
model = options[:model]
|
185
|
+
new_device_hash[:model] = model if model
|
186
|
+
|
179
187
|
# send the new device request
|
180
188
|
device_data = EnfApi::Captive.instance.create_device new_device_hash
|
181
189
|
|
@@ -462,6 +470,7 @@ module EnfCli
|
|
462
470
|
dev_addr = device_data[:device_address] || "\n"
|
463
471
|
mac_addrs = device_data[:mac_address]
|
464
472
|
firmware = device_data[:firmware_version] || '< not available >'
|
473
|
+
model = device_data[:model] || '< not available >'
|
465
474
|
profile = device_data[:profile]
|
466
475
|
status = device_data[:status]
|
467
476
|
|
@@ -491,6 +500,7 @@ module EnfCli
|
|
491
500
|
end
|
492
501
|
|
493
502
|
say "Firmware Version : #{firmware}", nil, true
|
503
|
+
say "Hardware Model : #{model}", nil, true
|
494
504
|
if profile
|
495
505
|
say "Profile :"
|
496
506
|
display_profile profile, true
|
data/lib/enfcli/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enfcli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.12.0.pre.alpha
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Venkatakumar Srinivasan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-11-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|