Class: Guard::Moonrope
- Inherits:
-
Plugin
- Object
- Plugin
- Guard::Moonrope
- Defined in:
- lib/moonrope/guard.rb
Instance Method Summary collapse
-
#initialize(options) ⇒ Moonrope
constructor
A new instance of Moonrope.
- #reload ⇒ Object
- #run_all ⇒ Object
- #run_on_modifications(paths) ⇒ Object
- #start ⇒ Object
Constructor Details
#initialize(options) ⇒ Moonrope
Returns a new instance of Moonrope.
3 4 5 6 7 8 |
# File 'lib/moonrope/guard.rb', line 3 def initialize() super = [:source] ||= "api" [:destination] ||= ".apidoc" end |
Instance Method Details
#reload ⇒ Object
14 15 16 |
# File 'lib/moonrope/guard.rb', line 14 def reload stop ; start end |
#run_all ⇒ Object
18 19 20 |
# File 'lib/moonrope/guard.rb', line 18 def run_all generate_moonrope_docs end |
#run_on_modifications(paths) ⇒ Object
22 23 24 |
# File 'lib/moonrope/guard.rb', line 22 def run_on_modifications(paths) generate_moonrope_docs end |
#start ⇒ Object
10 11 12 |
# File 'lib/moonrope/guard.rb', line 10 def start UI.info "Starting Moonrope Watching" end |