Module: Carson::Runtime::Status

Included in:
Carson::Runtime
Defined in:
lib/carson/runtime/status.rb

Instance Method Summary collapse

Instance Method Details

#status!(json_output: false) ⇒ Object

Entry point for ‘carson status`.



6
7
8
9
10
11
12
13
14
15
16
# File 'lib/carson/runtime/status.rb', line 6

def status!( json_output: false )
	data = gather_status

	if json_output
		output.puts JSON.pretty_generate( data )
	else
		print_status( data: data )
	end

	EXIT_OK
end