Sha256: f5d5444965feff013cd23d4e1cf1763ac66ec02ec59d76c3be732c6d5eacb2f7

Contents?: true

Size: 463 Bytes

Versions: 12

Compression:

Stored size: 463 Bytes

Contents

module Lederhosen

  ##
  # The CLI class holds all of the Thor tasks
  #
  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

12 entries across 12 versions & 1 rubygems

Version Path
lederhosen-0.5.4 lib/lederhosen/cli.rb
lederhosen-0.5.2 lib/lederhosen/cli.rb
lederhosen-0.5.1 lib/lederhosen/cli.rb
lederhosen-0.5.0 lib/lederhosen/cli.rb
lederhosen-0.4.0 lib/lederhosen/cli.rb
lederhosen-0.3.9 lib/lederhosen/cli.rb
lederhosen-0.3.8 lib/lederhosen/cli.rb
lederhosen-0.3.7 lib/lederhosen/cli.rb
lederhosen-0.3.6 lib/lederhosen/cli.rb
lederhosen-0.3.5 lib/lederhosen/cli.rb
lederhosen-0.3.4 lib/lederhosen/cli.rb
lederhosen-0.3.3 lib/lederhosen/cli.rb