Class: EY::Stonith::Commands::Commands
- Defined in:
- lib/ey_stonith/commands/commands.rb
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
Constructor Details
This class inherits a constructor from EY::Stonith::Commands::Abstract
Class Method Details
.banner ⇒ Object
9 10 11 |
# File 'lib/ey_stonith/commands/commands.rb', line 9 def self. "Print all the available commands" end |
.command ⇒ Object
5 6 7 |
# File 'lib/ey_stonith/commands/commands.rb', line 5 def self.command 'commands' end |
Instance Method Details
#invoke ⇒ Object
13 14 15 16 17 18 19 20 21 22 |
# File 'lib/ey_stonith/commands/commands.rb', line 13 def invoke puts <<-MESSAGE Available stonith commands: #{Stonith::Commands.formatted_command_list} Example: $ stonith status MESSAGE end |