class Guard::Teaspoon::Resolver

Attributes

suites[RW]

Public Class Methods

new(options = {}) click to toggle source
# File lib/guard/teaspoon/resolver.rb, line 7
def initialize(options = {})
  @options = options
  #@excluded = Dir[@options[:exclude].to_s]
end

Public Instance Methods

resolve(original_paths) click to toggle source
# File lib/guard/teaspoon/resolver.rb, line 12
def resolve(original_paths)
  @suites = {}
  original_paths.uniq.each do |path|
    if result = ::Teaspoon::Suite.resolve_spec_for(path)
      suite = @suites[result[:suite]] ||= []
      suite << result[:path]
      @suites[result[:suite]] = suite.flatten
    end
  end
end