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

Version Path
locomotivecms_steam-1.0.0 lib/locomotive/steam/adapters/filesystem/yaml_loaders/site.rb
locomotivecms_steam-1.0.0.rc10 lib/locomotive/steam/adapters/filesystem/yaml_loaders/site.rb
locomotivecms_steam-1.0.0.rc9 lib/locomotive/steam/adapters/filesystem/yaml_loaders/site.rb
locomotivecms_steam-1.0.0.rc8 lib/locomotive/steam/adapters/filesystem/yaml_loaders/site.rb
locomotivecms_steam-1.0.0.rc6 lib/locomotive/steam/adapters/filesystem/yaml_loaders/site.rb
locomotivecms_steam-1.0.0.rc4 lib/locomotive/steam/adapters/filesystem/yaml_loaders/site.rb
locomotivecms_steam-1.0.0.rc3 lib/locomotive/steam/adapters/filesystem/yaml_loaders/site.rb
locomotivecms_steam-1.0.0.rc2 lib/locomotive/steam/adapters/filesystem/yaml_loaders/site.rb
locomotivecms_steam-1.0.0.rc1 lib/locomotive/steam/adapters/filesystem/yaml_loaders/site.rb
locomotivecms_steam-1.0.0.pre.beta.3 lib/locomotive/steam/adapters/filesystem/yaml_loaders/site.rb
locomotivecms_steam-1.0.0.pre.beta.2 lib/locomotive/steam/adapters/filesystem/yaml_loaders/site.rb
locomotivecms_steam-1.0.0.pre.beta.1 lib/locomotive/steam/adapters/filesystem/yaml_loaders/site.rb