Sha256: 9134a9f96e8f75c60fda1f44db22383e66bafea1c39703e658055ace4982e0ed

Contents?: true

Size: 635 Bytes

Versions: 1

Compression:

Stored size: 635 Bytes

Contents

require 'guard'
require 'guard/plugin'

module Guard
  class Config < ::Guard::Plugin

    def initialize(options={})
      @builder = Marv::Project::Guard.builder
      super
    end

    # This method should be mainly used for "reload"
    def reload
      UI.info "Reloading project config"
      @builder.build_project
    end

    # Runs on all command in guard console
    def run_all
      UI.info "Reloading project config"
      @builder.build_project
    end

    # Called on file(s) modifications
    def run_on_change(paths)
      UI.info "Project config changed, reloading"
      @builder.build_project
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
marv-0.5.0 lib/marv/project/guard/config.rb