Sha256: 95c7048871e09a105935a49dedbbb0be0c72231ce640fecf86b4e9a015e059fd

Contents?: true

Size: 407 Bytes

Versions: 4

Compression:

Stored size: 407 Bytes

Contents

module Cupper
  class Cupperfile

    def initialize(loader, keys)
      @keys   = keys
      @loader = loader
      @config, _ = loader.load(keys)
    end

    protected

    def find_cupperfile(search_path)
      ["Cupperfile", "cupperfile"].each do |cupperfile|
        current_path = search_path.join(cupperfile)
        return current_path if current_path.file?
      end

      nil
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
cupper-0.1.3 lib/cupper/cupperfile.rb
cupper-0.1.2 lib/cupper/cupperfile.rb
cupper-0.1.1 lib/cupper/cupperfile.rb
cupper-0.1.0 lib/cupper/cupperfile.rb