Class: Guard::Railstestdb
Instance Method Summary collapse
-
#initialize(watchers = [], options = {}) ⇒ Railstestdb
constructor
Initialize a Guard.
-
#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_change(paths) ⇒ Object
Called on file(s) modifications that the Guard watches.
-
#run_on_deletion(paths) ⇒ Object
Called on file(s) deletions that the Guard watches.
-
#start ⇒ Object
Call once when Guard starts.
-
#stop ⇒ Object
Called when ‘stop|quit|exit|s|q|e + enter` is pressed (when Guard quits).
Constructor Details
#initialize(watchers = [], options = {}) ⇒ Railstestdb
Initialize a Guard.
12 13 14 |
# File 'lib/guard/railstestdb.rb', line 12 def initialize(watchers = [], = {}) super end |
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/…
29 30 |
# File 'lib/guard/railstestdb.rb', line 29 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/…
35 36 |
# File 'lib/guard/railstestdb.rb', line 35 def run_all end |
#run_on_change(paths) ⇒ Object
Called on file(s) modifications that the Guard watches.
41 42 |
# File 'lib/guard/railstestdb.rb', line 41 def run_on_change(paths) end |
#run_on_deletion(paths) ⇒ Object
Called on file(s) deletions that the Guard watches.
47 48 |
# File 'lib/guard/railstestdb.rb', line 47 def run_on_deletion(paths) end |
#start ⇒ Object
Call once when Guard starts. Please override initialize method to init stuff.
18 19 |
# File 'lib/guard/railstestdb.rb', line 18 def start end |
#stop ⇒ Object
Called when ‘stop|quit|exit|s|q|e + enter` is pressed (when Guard quits).
23 24 |
# File 'lib/guard/railstestdb.rb', line 23 def stop end |