Sha256: 1ff1fa6564e937f47da511319e7f99b5cf7c14fe3af63cf96c70e4ca7733fedc

Contents?: true

Size: 407 Bytes

Versions: 7

Compression:

Stored size: 407 Bytes

Contents

module Lederhosen
  class CLI < Thor
    include Thor::Actions

    no_tasks do
      def ohai(s)
        @shell.say_status('okay', s, 'green')
      end

      def ohno(s)
        @shell.say_status('fail', s, 'red')
        exit(-1)
      end
    end

    @shell = Thor::Shell::Basic.new

  end # class CLI

end # module

Dir.glob(File.join(File.dirname(__FILE__), 'tasks', '*.rb')).each { |f| require f }

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
lederhosen-0.3.2 lib/lederhosen/cli.rb
lederhosen-0.3.1 lib/lederhosen/cli.rb
lederhosen-0.3.0 lib/lederhosen/cli.rb
lederhosen-0.2.13 lib/lederhosen/cli.rb
lederhosen-0.2.12 lib/lederhosen/cli.rb
lederhosen-0.2.11 lib/lederhosen/cli.rb
lederhosen-0.2.10 lib/lederhosen/cli.rb