all on start

This commit is contained in:
John Bintz 2011-05-23 20:44:18 -04:00
parent cef8c2100a
commit 8c79c950f1
1 changed files with 8 additions and 0 deletions

View File

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