Class | Guard::Interactor |
In: |
lib/guard/interactor.rb
|
Parent: | Object |
The interactor triggers specific action from input read by a interactor implementation.
Currently the following actions are implemented:
It‘s also possible to scope `reload` and `run all` actions to only a specified group or a guard.
@example Reload backend group
backend reload
@example Reload rspec guard
spork reload
@example Run all jasmine specs
jasmine
@abstract
HELP_ENTRIES | = | %w[help h] |
RELOAD_ENTRIES | = | %w[reload r] |
STOP_ENTRIES | = | %w[exit e quit q] |
PAUSE_ENTRIES | = | %w[pause p] |
NOTIFICATION_ENTRIES | = | %w[notification n] |
Tries to detect an optimal interactor for the current environment.
It returns the Readline implementation when:
Otherwise the plain gets interactor is returned.
@return [Interactor] an interactor implementation
Get an instance of the currently configured interactor implementation.
@return [Interactor] an interactor implementation