Class: Locomotive::Steam::Adapters::Filesystem::YAMLLoaders::Site
- Inherits:
-
Object
- Object
- Locomotive::Steam::Adapters::Filesystem::YAMLLoaders::Site
- Defined in:
- lib/locomotive/steam/adapters/filesystem/yaml_loaders/site.rb
Instance Attribute Summary
Attributes included from Locomotive::Steam::Adapters::Filesystem::YAMLLoader
Instance Method Summary collapse
Methods included from Locomotive::Steam::Adapters::Filesystem::YAMLLoader
#_load, #default_locale, #initialize, #safe_yaml_load, #template_extensions
Instance Method Details
#load(scope) ⇒ Object
11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/locomotive/steam/adapters/filesystem/yaml_loaders/site.rb', line 11 def load(scope) attributes = _load(File.join(site_path, 'config', 'site.yml')) (attributes[:domains] ||= []).concat(%w(0.0.0.0 localhost)) attributes[:picture] = File.(File.join(site_path, 'icon.png')) attributes[:metafields_schema] = [attributes] end |