all on start
This commit is contained in:
parent
cef8c2100a
commit
8c79c950f1
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue