quiet down guard and thin

This commit is contained in:
Thomas Reynolds 2011-11-10 15:09:52 -08:00
parent d264a49a76
commit 9bfd345849
3 changed files with 11 additions and 1 deletions

View file

@ -55,6 +55,10 @@
libdir = File.dirname(__FILE__)
$LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir)
# Quiet down Thin
require "thin"
::Thin::Logging.silent = true
# We're riding on Sinatra, so let's include it.
require "sinatra/base"

View file

@ -65,6 +65,7 @@ module Middleman
:environment => options[:environment]
}
puts "== The Middleman is loading"
Middleman::Guard.start(params)
end

View file

@ -6,10 +6,15 @@ if Config::CONFIG['host_os'].downcase =~ %r{mingw}
require "win32/process"
end
# Quiet down Guard
ENV['GUARD_ENV'] = 'test'
module Middleman
module Guard
def self.add_guard(&block)
# Deprecation Warning
$stderr.puts "== Middleman::Guard.add_guard has been removed. Update your extensions to versions which support this change."
exit
end
def self.start(options={})