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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/enfcli/commands/captive.rb +18 -7
- data/lib/enfcli/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d0f256d19a0f175c9777452f20122626759e03150d7c38ade9efb07d7e10a678
|
4
|
+
data.tar.gz: dd144287a9e386c8f0e5668af644ed9ed0ad92b51b14344c58009021fdd701eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d1663bdce6d7fff2f4bfb81e8950a0f657b09b390aa684a6108e4372bd406d8f5c8162285fe0af955e253915cc6a967858a66c1565eff841067586bba1601c8
|
7
|
+
data.tar.gz: 6001fbb970ba8d329e587dc1a8fc42a6ac589bf883ff2b1fd1d470e3c03718ea13b0d1dfba2ccd67d654dded81156d8ad6dc0cbe601d7c722c7b1ae59b056e86
|
data/Gemfile.lock
CHANGED
@@ -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 "
|
634
|
-
say "
|
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
|
-
|
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
|
data/lib/enfcli/version.rb
CHANGED