Class: Guard::Evergreen

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

Defined Under Namespace

Classes: Notifier, Runner

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of Evergreen.



12
13
14
15
16
# File 'lib/guard/evergreen.rb', line 12

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

  @runner ||= Runner.new(options)
end

Instance Method Details

#pathsObject



30
31
32
# File 'lib/guard/evergreen.rb', line 30

def paths
  []
end

#reloadObject



26
27
28
# File 'lib/guard/evergreen.rb', line 26

def reload
  true
end

#run_allObject



34
35
36
37
# File 'lib/guard/evergreen.rb', line 34

def run_all 
  return @runner.run(paths) unless paths.empty?
  true
end

#run_on_change(paths = []) ⇒ Object



39
40
41
42
# File 'lib/guard/evergreen.rb', line 39

def run_on_change(paths = [])
  return @runner.run(paths) unless paths.empty?
  true
end

#startObject



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

def start
  true
end

#stopObject



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

def stop
  true
end