Class: Rlt::CLI
- Inherits:
-
Thor
- Object
- Thor
- Rlt::CLI
- Defined in:
- lib/rlt/cli.rb
Class Method Summary collapse
- .command_name(klass) ⇒ Object
- .handle_no_command_error(command) ⇒ Object
- .run(klass, *arguments) ⇒ Object
Instance Method Summary collapse
Class Method Details
.command_name(klass) ⇒ Object
16 17 18 |
# File 'lib/rlt/cli.rb', line 16 def self.command_name(klass) Utils::StringUtil.underscore(klass.name.split('::').last) end |
.handle_no_command_error(command) ⇒ Object
11 12 13 14 |
# File 'lib/rlt/cli.rb', line 11 def self.handle_no_command_error(command) raise GitNativeCommandError if Utils::GitUtil::NATIVE_COMMANDS.include? command super end |