Module: Carson::Runtime::Status
- Included in:
- Carson::Runtime
- Defined in:
- lib/carson/runtime/status.rb
Instance Method Summary collapse
-
#status!(json_output: false) ⇒ Object
Entry point for ‘carson status`.
Instance Method Details
#status!(json_output: false) ⇒ Object
Entry point for ‘carson status`. Collects estate state and reports.
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/carson/runtime/status.rb', line 8 def status!( json_output: false ) data = gather_status if json_output out.puts JSON.pretty_generate( data ) else print_status( data: data ) end EXIT_OK end |