Class: Guard::Awestruct
Instance Method Summary collapse
-
#initialize(watchers = [], options = {}) ⇒ Awestruct
constructor
A new instance of Awestruct.
- #reload ⇒ Object
- #run_all ⇒ Object
- #run_on_change(paths) ⇒ Object
- #run_on_deletion(paths) ⇒ Object
- #start ⇒ Object
- #stop ⇒ Object
Constructor Details
#initialize(watchers = [], options = {}) ⇒ Awestruct
Returns a new instance of Awestruct.
9 10 11 |
# File 'lib/guard/awestruct.rb', line 9 def initialize(watchers=[], ={}) super end |
Instance Method Details
#reload ⇒ Object
20 21 |
# File 'lib/guard/awestruct.rb', line 20 def reload end |
#run_all ⇒ Object
23 24 |
# File 'lib/guard/awestruct.rb', line 23 def run_all end |
#run_on_change(paths) ⇒ Object
26 27 28 29 30 31 32 |
# File 'lib/guard/awestruct.rb', line 26 def run_on_change(paths) paths.each do |path| unless ( path =~ /_site/ ) @engine.generate_page_by_output_path( path ) end end end |
#run_on_deletion(paths) ⇒ Object
34 35 |
# File 'lib/guard/awestruct.rb', line 34 def run_on_deletion(paths) end |
#start ⇒ Object
13 14 15 |
# File 'lib/guard/awestruct.rb', line 13 def start @engine = ::Awestruct::Engine.instance end |
#stop ⇒ Object
17 18 |
# File 'lib/guard/awestruct.rb', line 17 def stop end |