Sha256: 1a57a5a3ad1c038d9f7d04dd9e967cc747b0bc817726db9c30f440aa4429de49
Contents?: true
Size: 550 Bytes
Versions: 12
Compression:
Stored size: 550 Bytes
Contents
module Locomotive module Steam module Adapters module Filesystem module YAMLLoaders class Site include Adapters::Filesystem::YAMLLoader def load(scope) attributes = _load(File.join(site_path, 'config', 'site.yml')) (attributes[:domains] ||= []).concat(%w(0.0.0.0 localhost)) attributes[:picture] = File.expand_path(File.join(site_path, 'icon.png')) [attributes] end end end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems