Class: EY::Stonith::Commands::NotFound

Inherits:
Abstract
  • Object
show all
Defined in:
lib/ey_stonith/commands/not_found.rb

Constant Summary

Constants inherited from Abstract

Abstract::DEFAULT_CONFIG_PATH, Abstract::SCRIPT_NAME

Instance Method Summary collapse

Methods inherited from Abstract

#call, command, #command_options, #config, #execute, #history, #init_logger, #initialize, #parse!, #parser, #script

Constructor Details

This class inherits a constructor from EY::Stonith::Commands::Abstract

Instance Method Details

#invokeObject



5
6
7
8
# File 'lib/ey_stonith/commands/not_found.rb', line 5

def invoke
  Stonith.logger.error "Command not found: #{@argv.inspect}"
  abort "Command not found #{@argv.first.inspect}.\n#{parser}"
end