lib/lederhosen/cli.rb in lederhosen-0.5.4 vs lib/lederhosen/cli.rb in lederhosen-0.5.5
- old
+ new
@@ -5,13 +5,23 @@
#
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