class DevOops::Runner
Constants
- CONFIG_DIR
- REGISTERED_CLASS_METHODS
Public Class Methods
register(klass, subcommand_name, usage, description, options = {})
click to toggle source
Calls superclass method
# File lib/dev_oops/runner.rb, line 14 def self.register(klass, subcommand_name, usage, description, options = {}) REGISTERED_CLASS_METHODS[subcommand_name] = klass if klass <= Thor::Group super end
source_root()
click to toggle source
# File lib/dev_oops/runner.rb, line 10 def self.source_root "#{File.dirname(__FILE__)}/.." end
Public Instance Methods
help(subcommand = nil)
click to toggle source
Calls superclass method
# File lib/dev_oops/runner.rb, line 51 def help(subcommand = nil) if subcommand && respond_to?(subcommand) klass = REGISTERED_CLASS_METHODS[subcommand] klass.start(['-h']) else super end end