Tell Thor to return the right exit code on failure

This commit is contained in:
Ben Hollis 2012-03-18 17:30:25 -06:00
parent 85d2ace5ce
commit bacffeea02
3 changed files with 14 additions and 3 deletions

View file

@ -53,6 +53,9 @@ module Middleman::Cli
# Static methods
class << self
def exit_on_failure?
true
end
# Middleman::Base singleton
#

View file

@ -43,6 +43,10 @@ module Middleman::Cli
end
end
def self.exit_on_failure?
true
end
# Map "i", "new" and "n" to "init"
Base.map({
"i" => "init",

View file

@ -52,6 +52,10 @@ module Middleman::Cli
end
end
def self.exit_on_failure?
true
end
# Map "s" to "server"
Base.map({ "s" => "server" })
end