Sha256: c0d4b2addc7e581c992b723899d41b05e53c8bf47a3378545495ede6b464d8a5

Contents?: true

Size: 371 Bytes

Versions: 1

Compression:

Stored size: 371 Bytes

Contents

require "thor"

module Carrasco
  class Thor < ::Thor
    no_commands do
      def execute_command(command)
        command_executer.execute!(command)
      end

      def command_executer=(command_executer)
        @@command_executer = command_executer
      end

      def command_executer
        @@command_executer ||= CommandExecuter.new
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
carrasco-0.1.5 lib/carrasco/thor.rb