Class: Guard::Cedar

Inherits:
Guard
  • Object
show all
Defined in:
lib/guard/cedar.rb,
lib/guard/cedar/runner.rb

Defined Under Namespace

Classes: Runner

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(watchers = [], options = {}) ⇒ Cedar

Returns a new instance of Cedar.



9
10
11
12
# File 'lib/guard/cedar.rb', line 9

def initialize(watchers=[], options={})
  @options = options
  super
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



7
8
9
# File 'lib/guard/cedar.rb', line 7

def options
  @options
end

Instance Method Details

#run_allObject



18
19
20
# File 'lib/guard/cedar.rb', line 18

def run_all
  runner.run
end

#run_on_changes(paths) ⇒ Object



22
23
24
# File 'lib/guard/cedar.rb', line 22

def run_on_changes(paths)
  run_all
end

#startObject



14
15
16
# File 'lib/guard/cedar.rb', line 14

def start
  run_all if options[:all_on_start]
end