Class: Guard::Lono
- Inherits:
-
Plugin
- Object
- Plugin
- Guard::Lono
- Defined in:
- lib/guard/lono.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Lono
constructor
Initialize a Guard.
-
#run_all ⇒ Object
Called when just ‘enter` is pressed This method should be principally used for long action like running all specs/tests/…
-
#run_on_change(paths) ⇒ Object
Called on file(s) modifications that the Guard watches.
-
#start ⇒ Object
Call once when Guard starts.
Constructor Details
#initialize(options = {}) ⇒ Lono
Initialize a Guard.
9 10 11 12 13 14 15 |
# File 'lib/guard/lono.rb', line 9 def initialize( = {}) @options = { :all_on_start => true, :notification => true, }.merge() super(@options) end |
Instance Method Details
#run_all ⇒ Object
Called when just ‘enter` is pressed This method should be principally used for long action like running all specs/tests/…
26 27 28 |
# File 'lib/guard/lono.rb', line 26 def run_all run! end |
#run_on_change(paths) ⇒ Object
Called on file(s) modifications that the Guard watches.
33 34 35 |
# File 'lib/guard/lono.rb', line 33 def run_on_change(paths) run! end |
#start ⇒ Object
Call once when Guard starts. Please override initialize method to init stuff.
19 20 21 |
# File 'lib/guard/lono.rb', line 19 def start run_all if @options[:all_on_start] end |