Class: EY::Stonith::Commands::Status
Constant Summary
Constants inherited
from Abstract
Abstract::DEFAULT_CONFIG_PATH, Abstract::SCRIPT_NAME
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Abstract
#call, #command_options, #config, #execute, #history, #init_logger, #initialize, #parse!, #parser, #script
Class Method Details
.banner ⇒ Object
9
10
11
|
# File 'lib/ey_stonith/commands/status.rb', line 9
def self.banner
"List the last one or two actions performed"
end
|
.command ⇒ Object
5
6
7
|
# File 'lib/ey_stonith/commands/status.rb', line 5
def self.command
'status'
end
|
Instance Method Details
#invoke ⇒ Object
13
14
15
|
# File 'lib/ey_stonith/commands/status.rb', line 13
def invoke
puts status unless status.empty?
end
|
#status ⇒ Object
17
18
19
|
# File 'lib/ey_stonith/commands/status.rb', line 17
def status
@status ||= history.to_s
end
|