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__) libdir = File.dirname(__FILE__)
$LOAD_PATH.unshift(libdir) unless $LOAD_PATH.include?(libdir) $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. # We're riding on Sinatra, so let's include it.
require "sinatra/base" require "sinatra/base"

View file

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

View file

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