Class: Guard::Awestruct

Inherits:
Guard
  • Object
show all
Defined in:
lib/guard/awestruct.rb

Instance Method Summary collapse

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=[], options={})
  super
end

Instance Method Details

#reloadObject



20
21
# File 'lib/guard/awestruct.rb', line 20

def reload
end

#run_allObject



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

#startObject



13
14
15
# File 'lib/guard/awestruct.rb', line 13

def start
  @engine = ::Awestruct::Engine.instance
end

#stopObject



17
18
# File 'lib/guard/awestruct.rb', line 17

def stop
end