class Foundry::Sources::File

Public Instance Methods

load(root_path, relative_path, opts) click to toggle source
# File lib/foundry/sources/file.rb, line 4
def load(root_path, relative_path, opts)
  file_path = ::File.join(root_path, relative_path)
  raise "Unknown configuration file: #{file_path}" unless ::File.exists?(file_path)
  ::File.read(file_path)
end