all on start

This commit is contained in:
John Bintz 2011-05-23 20:44:18 -04:00
parent cef8c2100a
commit 8c79c950f1

View File

@ -3,8 +3,16 @@ require 'guard/guard'
module Guard module Guard
class JasmineHeadlessWebkit < Guard class JasmineHeadlessWebkit < Guard
def initialize(watchers = [], options = {})
super
@options = {
:all_on_start => true
}.merge(options)
end
def start def start
UI.info "Guard::JasmineHeadlessWebkit is running." UI.info "Guard::JasmineHeadlessWebkit is running."
run_all if @options[:all_on_start]
end end
def run_all def run_all