Sha256: 76a5f45dcbbe2019813f2985c9b85c2e6e688ecfb304ccb7b1ded8fb7f0d124d
Contents?: true
Size: 681 Bytes
Versions: 40
Compression:
Stored size: 681 Bytes
Contents
module Lederhosen ## # The CLI class holds all of the Thor tasks # class CLI < Thor include Thor::Actions no_tasks do ## # print a status message to $stderr # use for good statuses # def ohai(s) @shell.say_status('okay', s, 'green') end ## # print a status message to $stderr # use for bad statuses # also exit's with -1 status-code # 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
40 entries across 40 versions & 1 rubygems