quiet down guard and thin
This commit is contained in:
parent
d264a49a76
commit
9bfd345849
|
@ -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"
|
||||
|
||||
|
|
|
@ -65,6 +65,7 @@ module Middleman
|
|||
:environment => options[:environment]
|
||||
}
|
||||
|
||||
puts "== The Middleman is loading"
|
||||
Middleman::Guard.start(params)
|
||||
end
|
||||
|
||||
|
|
|
@ -5,11 +5,16 @@ require "rbconfig"
|
|||
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={})
|
||||
|
|
Loading…
Reference in a new issue