Module: Clamp::Subcommand::Execution

Defined in:
lib/clamp/subcommand/execution.rb

Overview

Support for subcommand execution.

This module is mixed into command instances that have subcommands, overriding default behaviour in Command.

Instance Method Summary collapse

Instance Method Details

#executeObject

override default Command behaviour



15
16
17
18
19
# File 'lib/clamp/subcommand/execution.rb', line 15

def execute
  # delegate to subcommand
  subcommand = instantiate_subcommand(subcommand_name)
  subcommand.run(subcommand_arguments)
end