lib/carrasco/command_builder.rb in carrasco-0.1.4 vs lib/carrasco/command_builder.rb in carrasco-0.1.5

- old
+ new

@@ -1,7 +1,5 @@ -require "thor" - module Carrasco class CommandBuilder def from_config(config) klass = Class.new(Thor) @@ -15,10 +13,10 @@ def inject_command_into_class(command, klass) klass.desc(command.help, command.description) klass.class_eval do define_method(command.command_name) do - system(command.command) + execute_command(command) end end end end end