Method: CollinsShell::State#get
- Defined in:
- lib/collins_shell/state.rb
#get(state) ⇒ Object
51 52 53 54 55 56 57 58 |
# File 'lib/collins_shell/state.rb', line 51 def get state call_collins get_collins_client, "state_get" do |client| header = [["Name", "Label", "Status", "Description"]] state = client.state_get(state) table = header + [[state.name, state.label, (state.status.name || ""), state.description]] print_table table end end |