Class: R10K::Config::Loader

Inherits:
Object
  • Object
show all
Defined in:
lib/r10k/config/loader.rb

Instance Method Summary collapse

Constructor Details

#initializeLoader

Returns a new instance of Loader.



8
9
10
11
12
# File 'lib/r10k/config/loader.rb', line 8

def initialize
  @loadpath = []

  populate_loadpath
end

Instance Method Details

#searchString

Returns The path to the first valid configfile.

Returns:

  • (String)

    The path to the first valid configfile



15
16
17
# File 'lib/r10k/config/loader.rb', line 15

def search
  first = @loadpath.find {|filename| File.file? filename}
end