enfcli 4.2.1.pre.alpha → 4.2.2.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: 27b28906253cb5aa863c719da49ea29361254f44d7cc638e332d531f404e3887
4
- data.tar.gz: b6c231170699644a0628d9911368b822214b47916c61b66424384d19b5eb48fd
3
+ metadata.gz: d0f256d19a0f175c9777452f20122626759e03150d7c38ade9efb07d7e10a678
4
+ data.tar.gz: dd144287a9e386c8f0e5668af644ed9ed0ad92b51b14344c58009021fdd701eb
5
5
  SHA512:
6
- metadata.gz: 84a41a3805664bf9e341d6a545daf92bc82c1271f5ccb92695808ae9e4737ecd8c148259d904f28f0bdbf65a8e6f34333c503adccf39b63c261d7b6bb1976d41
7
- data.tar.gz: 94706731090498b60bde0dcc0181cabf7ba7bddd9088c879cc049f4f7e87990bdf5e5bc05774a61506f3c3b9cffd1dff0314b75fb9fb2b65c43c7fa7875e2549
6
+ metadata.gz: 0d1663bdce6d7fff2f4bfb81e8950a0f657b09b390aa684a6108e4372bd406d8f5c8162285fe0af955e253915cc6a967858a66c1565eff841067586bba1601c8
7
+ data.tar.gz: 6001fbb970ba8d329e587dc1a8fc42a6ac589bf883ff2b1fd1d470e3c03718ea13b0d1dfba2ccd67d654dded81156d8ad6dc0cbe601d7c722c7b1ae59b056e86
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- enfcli (4.2.1.pre.alpha)
4
+ enfcli (4.2.2.pre.alpha)
5
5
  clipboard
6
6
  ffi
7
7
  readline
@@ -624,20 +624,21 @@ module EnfCli
624
624
  end
625
625
 
626
626
  # Display a single wifi configuration in detail
627
- def display_wifi_detail(wifi_data, full_listing = true)
627
+ def display_wifi_detail(wifi_data, full_listing = true, tabs = 0)
628
+ indent = " " * tabs
628
629
  name = wifi_data[:name]
629
630
  wifi_id = wifi_data[:id]
630
631
  desc = wifi_data[:description]
631
632
  nets = wifi_data[:networks]
632
633
 
633
- say "Wifi ID : #{wifi_id}", nil, true
634
- say "Name : #{name}", nil, true
635
- say "Description : #{desc}", nil, true if desc
634
+ say indent + "Name : #{name}", nil, true
635
+ say indent + "Wifi ID : #{wifi_id}", nil, true
636
+ say indent + "Description : #{desc}", nil, true if desc
636
637
  if full_listing
637
638
  say "WiFi Networks :"
638
639
  if nets
639
640
  nets.each do |wifi_net|
640
- display_wifi_net(wifi_net, 1)
641
+ display_wifi_net(wifi_net, tabs + 1)
641
642
  end
642
643
  end
643
644
  end
@@ -808,7 +809,7 @@ module EnfCli
808
809
  say "Router Mode : #{mode}", nil, true
809
810
  say "Uptime (in seconds) : #{uptime}", nil, true
810
811
  say "Status refresh time : #{refresh}", nil, true
811
- say "WIFI :"
812
+ say "WIFI status :"
812
813
  say " connected : #{connected}", nil, true
813
814
  say " SSID : #{ssid}" if ssid
814
815
  if ipv4 && !ipv4.empty?
@@ -825,7 +826,17 @@ module EnfCli
825
826
  end
826
827
  end
827
828
 
828
- display_wifi_detail(wifi_config, false) if wifi_config
829
+ say "WIFI configuration :"
830
+ display_wifi_detail(wifi_config, false, 1) if wifi_config
831
+
832
+ fw_status = device_status[:firmware]
833
+ if fw_status
834
+ image_name = fw_status[:image_name] || "< not available >"
835
+ image_state = fw_status[:state] || " < not available >"
836
+ say "Firmware Status :"
837
+ say " image name : #{image_name}", nil, true
838
+ say " operating state : #{image_state}", nil, true
839
+ end
829
840
 
830
841
  say " ", nil, true
831
842
  end
@@ -14,5 +14,5 @@
14
14
  # limitations under the License.
15
15
  #
16
16
  module EnfCli
17
- VERSION = "4.2.1-alpha"
17
+ VERSION = "4.2.2-alpha"
18
18
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enfcli
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.1.pre.alpha
4
+ version: 4.2.2.pre.alpha
5
5
  platform: ruby
6
6
  authors:
7
7
  - Venkatakumar Srinivasan