Class: ThorHammer::Runner

Inherits:
Object
  • Object
show all
Defined in:
lib/thor_hammer/runner.rb

Class Method Summary collapse

Class Method Details

.start(thor, subcommand, args = "") ⇒ Object



4
5
6
7
8
# File 'lib/thor_hammer/runner.rb', line 4

def self.start(thor, subcommand, args = "")
  output = capture(:stdout, :stderr) do
    thor.classify.constantize.start([subcommand] + args.split(","))
  end
end