Sha256: 80541291f4345add6a3474ffdecc6bbec0dd1096db47d4b469d4dfa23c6164ca

Contents?: true

Size: 604 Bytes

Versions: 7

Compression:

Stored size: 604 Bytes

Contents

require 'guard'
require 'guard/guard'

require 'awestruct/engine'

module Guard
  class Awestruct < Guard

    def initialize(watchers=[], options={})
      super
    end

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

    def stop
    end

    def reload
    end

    def run_all
    end

    def run_on_change(paths)
      paths.each do |path|
        unless ( path =~ %r(#{File.basename( @engine.config.output_dir) }) || path =~ /.awestruct/ )
          @engine.generate_page_by_output_path( path )
        end
      end
    end

    def run_on_deletion(paths)
    end

  end
end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
awestruct-0.4.2.x6 lib/guard/awestruct.rb
awestruct-0.4.2.x5 lib/guard/awestruct.rb
awestruct-0.4.2.x4 lib/guard/awestruct.rb
awestruct-0.4.2.x3 lib/guard/awestruct.rb
awestruct-0.4.2.x2 lib/guard/awestruct.rb
awestruct-0.4.2.x1 lib/guard/awestruct.rb
awestructx-0.4.1.x1 lib/guard/awestruct.rb