Class: Guard::Karma
- Inherits:
-
Plugin
- Object
- Plugin
- Guard::Karma
- Defined in:
- lib/guard/karma.rb,
lib/guard/karma/notifier.rb
Defined Under Namespace
Classes: Notifier
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Karma
constructor
Initializes a Guard plugin.
-
#reload ⇒ Object
Called when ‘reload|r|z + enter` is pressed.
-
#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_additions(paths) ⇒ Object
Called on file(s) additions that the Guard plugin watches.
-
#run_on_modifications(paths) ⇒ Object
Called on file(s) modifications that the Guard plugin watches.
-
#run_on_removals(paths) ⇒ Object
Called on file(s) removals that the Guard plugin watches.
-
#start ⇒ Object
Called once when Guard starts.
-
#stop ⇒ Object
Called when ‘stop|quit|exit|s|q|e + enter` is pressed (when Guard quits).
Constructor Details
Instance Method Details
#reload ⇒ Object
Called when ‘reload|r|z + enter` is pressed. This method should be mainly used for “reload” (really!) actions like reloading passenger/spork/bundler/…
43 44 |
# File 'lib/guard/karma.rb', line 43 def reload end |
#run_all ⇒ Object
Called when just ‘enter` is pressed This method should be principally used for long action like running all specs/tests/…
52 53 54 |
# File 'lib/guard/karma.rb', line 52 def run_all run_cmd end |
#run_on_additions(paths) ⇒ Object
Called on file(s) additions that the Guard plugin watches.
62 63 64 |
# File 'lib/guard/karma.rb', line 62 def run_on_additions(paths) run_cmd end |
#run_on_modifications(paths) ⇒ Object
Called on file(s) modifications that the Guard plugin watches.
72 73 74 |
# File 'lib/guard/karma.rb', line 72 def run_on_modifications(paths) run_cmd end |
#run_on_removals(paths) ⇒ Object
Called on file(s) removals that the Guard plugin watches.
82 83 84 |
# File 'lib/guard/karma.rb', line 82 def run_on_removals(paths) run_cmd end |
#start ⇒ Object
Called once when Guard starts. Please override initialize method to init stuff.
25 26 27 |
# File 'lib/guard/karma.rb', line 25 def start run_cmd if [:all_on_start] end |
#stop ⇒ Object
Called when ‘stop|quit|exit|s|q|e + enter` is pressed (when Guard quits).
34 35 |
# File 'lib/guard/karma.rb', line 34 def stop end |