Sha256: 5f9b8e687e668b522b732a556695decbb506ade77ab6d5510e1e9720b635273c

Contents?: true

Size: 477 Bytes

Versions: 2

Compression:

Stored size: 477 Bytes

Contents

require "guard"
require "guard/guard"
require "guard/cedar/runner"

module ::Guard
  class Cedar < ::Guard::Guard
    attr_reader :options

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

    def start
      run_all if options[:all_on_start]
    end

    def run_all
      runner.run
    end

    def run_on_changes(paths)
      run_all
    end

    private
    def runner
      ::Guard::Cedar::Runner.new(options)
    end
  end
end
  

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
guard-cedar-0.1.1 lib/guard/cedar.rb
guard-cedar-0.1.0 lib/guard/cedar.rb