Module: EverydayThorUtil::Common

Included in:
Builder, SubCommandTypes
Defined in:
lib/everyday_thor_util/common.rb

Instance Method Summary collapse

Instance Method Details

#add_debugging(base, option_sym, env_sym) ⇒ Object



74
75
76
77
78
# File 'lib/everyday_thor_util/common.rb', line 74

def add_debugging(base, option_sym, env_sym)
  methods = base.commands.keys - base.subcommands
  methods.each { |method_name| EverydayThorUtil::CommonHelpers.define_debug_wrapper(base, env_sym, method_name, option_sym) }
  base.subcommand_classes.values.each { |c| add_debugging(c, option_sym, env_sym) }
end