Class: Foundry::Sources::File
- Inherits:
-
Object
- Object
- Foundry::Sources::File
- Defined in:
- lib/foundry/sources/file.rb
Instance Method Summary collapse
Instance Method Details
#load(root_path, relative_path, opts) ⇒ Object
4 5 6 7 8 |
# 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 |