lib/lederhosen/cli.rb in lederhosen-0.2.9 vs lib/lederhosen/cli.rb in lederhosen-0.2.10
- old
+ new
@@ -1,12 +1,16 @@
module Lederhosen
class CLI < Thor
include Thor::Actions
no_tasks do
- # just print string to STDERR
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