enfcli 3.11.0.pre.alpha → 3.12.0.pre.alpha

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: 26b242ed9d5db128c862067ce214faddb6c8842635f947538b5be9bc2ef44de6
4
- data.tar.gz: 7531477be394b40a9cacda41ac4eb781b82495443ecc32e780d2efd7a7d63e30
3
+ metadata.gz: f979f06a9f25dad8887fc5260713707ad3c868dec6ce41b9e1b5abe90a6191c6
4
+ data.tar.gz: ccb74ba53cd0b5dd3762057cc4999163efeee366bf6cb7d57b070830b3b786a3
5
5
  SHA512:
6
- metadata.gz: 3aa34b98fde5eea1a318cafc26756261c3b4a069d8baaf6aedf2a1e8adc4cbfe47d6822813835f8827e3dbb4d05c0add4e43f6942e49df11ec708904c9a217b8
7
- data.tar.gz: 789a4512c071c67771c20001e7339317141c27ddcd14a566a45f35f115abe91ed9928939d9f3a0128f2738f44cd1dbc2ba0c6eb25d6cd89697fac9b3adfe727d
6
+ metadata.gz: 5329e56ea4089c3421c5f23607f992017d88bccf96080a4b44f6b97ccad0e70f2d110f767cda0210704d06191d697e504613509a30c4b3a9adb5cd7ea16cc994
7
+ data.tar.gz: 4bd293cd5e9d96b23833bc95736811ef853cff7c96c52c4f7d246dd46b53fb94e8a6783b2e6b418f98c6cb1f18eca1016633a9217d0b6fe401fa304837e7aeab
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- enfcli (3.11.0.pre.alpha)
4
+ enfcli (3.12.0.pre.alpha)
5
5
  rest-client (~> 2.0)
6
6
  terminal-table
7
7
  thor (~> 0.20.0)
@@ -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', defaut: nil, type: :string, banner: '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, required: true,
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
@@ -14,5 +14,5 @@
14
14
  # limitations under the License.
15
15
  #
16
16
  module EnfCli
17
- VERSION = '3.11.0-alpha'
17
+ VERSION = '3.12.0-alpha'
18
18
  end
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.11.0.pre.alpha
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-10-21 00:00:00.000000000 Z
11
+ date: 2019-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor