Class: Guard::Evergreen
- Inherits:
-
Guard
- Object
- Guard
- Guard::Evergreen
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 Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
#initialize(watchers = [], options = {}) ⇒ Evergreen
Returns a new instance of Evergreen.
14
15
16
17
18
|
# File 'lib/guard/evergreen.rb', line 14
def initialize(watchers = [], options = {})
super
@runner ||= Runner.new(options)
end
|
Instance Attribute Details
#runner ⇒ Object
Returns the value of attribute runner.
12
13
14
|
# File 'lib/guard/evergreen.rb', line 12
def runner
@runner
end
|
Instance Method Details
#paths ⇒ Object
32
33
34
|
# File 'lib/guard/evergreen.rb', line 32
def paths
[]
end
|
#reload ⇒ Object
28
29
30
|
# File 'lib/guard/evergreen.rb', line 28
def reload
true
end
|
#run_all ⇒ Object
36
37
38
39
|
# File 'lib/guard/evergreen.rb', line 36
def run_all
return @runner.run(paths) unless paths.empty?
true
end
|
#run_on_change(paths = []) ⇒ Object
41
42
43
44
|
# File 'lib/guard/evergreen.rb', line 41
def run_on_change(paths = [])
return @runner.run(paths) unless paths.empty?
true
end
|
#start ⇒ Object
20
21
22
|
# File 'lib/guard/evergreen.rb', line 20
def start
true
end
|
#stop ⇒ Object
24
25
26
|
# File 'lib/guard/evergreen.rb', line 24
def stop
true
end
|