Merge pull request #407 from bhollis/windows
Don't install signal handlers on Windows
This commit is contained in:
commit
ade26a8d20
|
@ -1,8 +1,11 @@
|
||||||
# File changes are forwarded to the currently running app via HTTP
|
# File changes are forwarded to the currently running app via HTTP
|
||||||
require "net/http"
|
require "net/http"
|
||||||
|
|
||||||
require "fileutils"
|
require "fileutils"
|
||||||
|
|
||||||
|
module Middleman
|
||||||
|
WINDOWS = !!(RUBY_PLATFORM =~ /(mingw|bccwin|wince|mswin32)/i) unless const_defined?(:WINDOWS)
|
||||||
|
end
|
||||||
|
|
||||||
module Middleman
|
module Middleman
|
||||||
class Watcher
|
class Watcher
|
||||||
class << self
|
class << self
|
||||||
|
@ -31,7 +34,7 @@ module Middleman
|
||||||
|
|
||||||
def initialize(options)
|
def initialize(options)
|
||||||
@options = options
|
@options = options
|
||||||
register_signal_handlers
|
register_signal_handlers unless ::Middleman::WINDOWS
|
||||||
end
|
end
|
||||||
|
|
||||||
def watch!
|
def watch!
|
||||||
|
|
Loading…
Reference in a new issue