Module: Committer::Commands
- Defined in:
- lib/committer/commands.rb,
lib/committer/commands/help.rb,
lib/committer/commands/setup.rb,
lib/committer/commands/default.rb,
lib/committer/commands/output_message.rb,
lib/committer/commands/setup_git_hook.rb
Defined Under Namespace
Classes: Default, Help, OutputMessage, Setup, SetupGitHook
Class Method Summary collapse
Class Method Details
.run(command, args) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/committer/commands.rb', line 11 def self.run(command, args) case command when 'setup' Setup.execute(args) when 'help', '--help', '-h' Help.execute(args) when 'output-message' OutputMessage.execute(args) when 'setup-git-hook' SetupGitHook.execute(args) else Default.execute(args) end end |