Sha256: 59accbe3e2691059e7d590a43b0025bac752a658dc2463b8e1c6a60ee20c7a58

Contents?: true

Size: 675 Bytes

Versions: 1

Compression:

Stored size: 675 Bytes

Contents

require 'guard'
require 'guard/guard'

module Guard
  class MarvFolders < ::Guard::Guard

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

    def start
      UI.info "Copying folders over"
      copy_folders
    end

    def run_all
      UI.info "Rebuilding all folders"
      clean_copy_folders
    end

    # Called on file(s) modifications
    def run_on_change(paths)
      UI.info "Folders have changed, copying over"
      clean_copy_folders
    end

    def copy_folders
      ::Marv::Guard.builder.copy_folders
    end

    def clean_copy_folders
      ::Marv::Guard.builder.clean_folders
      ::Marv::Guard.builder.copy_folders
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
marv-0.3.0 lib/guard/marv/folders.rb