Class: Guard::Moonrope

Inherits:
Plugin
  • Object
show all
Defined in:
lib/moonrope/guard.rb

Instance Method Summary collapse

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(options)
  super
  @options = options
  @options[:source] ||= "api"
  @options[:destination] ||= ".apidoc"
end

Instance Method Details

#reloadObject



14
15
16
# File 'lib/moonrope/guard.rb', line 14

def reload
  stop ; start
end

#run_allObject



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

#startObject



10
11
12
# File 'lib/moonrope/guard.rb', line 10

def start
  UI.info "Starting Moonrope Watching"
end