lib/shelly/cli/endpoint.rb in shelly-0.4.39 vs lib/shelly/cli/endpoint.rb in shelly-0.4.40
- old
+ new
@@ -38,13 +38,12 @@
else
say "No HTTP endpoints available"
end
end
- desc "show", "Show detail information about HTTP endpoint"
+ desc "show UUID", "Show detail information about HTTP endpoint"
def show(uuid)
app = multiple_clouds(options[:cloud], "endpoint show UUID")
-
endpoint = app.endpoint(uuid)
say "UUID: #{endpoint['uuid']}"
say "IP address: #{endpoint['ip_address']}", nil, true
say "SNI: #{"✓" if endpoint['sni']}", nil, true