Sha256: 6f04b3247be88fdafe165223d17ac95327ad8d8f9f59618812ad4aec8f639a9c

Contents?: true

Size: 656 Bytes

Versions: 16

Compression:

Stored size: 656 Bytes

Contents

require 'locomotive/coal'

module Locomotive::Wagon

  module SteamConcern

    def steam_services
      return @steam_services if @steam_services

      Locomotive::Steam.configure do |config|
        config.mode         = :test
        config.adapter      = { name: :filesystem, path: path }
        config.asset_path   = File.expand_path(File.join(path, 'public'))
      end

      @steam_services = Locomotive::Steam::Services.build_instance.tap do |services|
        repositories = services.repositories
        services.set_site(repositories.site.all.first)
        services.locale = services.current_site.default_locale
      end
    end

  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
locomotivecms_wagon-2.0.1 lib/locomotive/wagon/commands/concerns/steam_concern.rb
locomotivecms_wagon-2.0.0 lib/locomotive/wagon/commands/concerns/steam_concern.rb
locomotivecms_wagon-2.0.0.rc8 lib/locomotive/wagon/commands/concerns/steam_concern.rb
locomotivecms_wagon-2.0.0.rc7 lib/locomotive/wagon/commands/concerns/steam_concern.rb
locomotivecms_wagon-2.0.0.rc6 lib/locomotive/wagon/commands/concerns/steam_concern.rb
locomotivecms_wagon-2.0.0.rc5 lib/locomotive/wagon/commands/concerns/steam_concern.rb
locomotivecms_wagon-2.0.0.rc4 lib/locomotive/wagon/commands/concerns/steam_concern.rb
locomotivecms_wagon-2.0.0.rc3 lib/locomotive/wagon/commands/concerns/steam_concern.rb
locomotivecms_wagon-2.0.0.rc2 lib/locomotive/wagon/commands/concerns/steam_concern.rb
locomotivecms_wagon-2.0.0.rc1 lib/locomotive/wagon/commands/concerns/steam_concern.rb
locomotivecms_wagon-2.0.0.pre.beta.2 lib/locomotive/wagon/commands/concerns/steam_concern.rb
locomotivecms_wagon-2.0.0.pre.beta.1 lib/locomotive/wagon/commands/concerns/steam_concern.rb
locomotivecms_wagon-2.0.0.pre.alpha.3 lib/locomotive/wagon/commands/concerns/steam_concern.rb
locomotivecms_wagon-2.0.0.pre.alpha.2 lib/locomotive/wagon/commands/concerns/steam_concern.rb
locomotivecms_wagon-2.0.0.pre.alpha.1 lib/locomotive/wagon/commands/concerns/steam_concern.rb
locomotivecms_wagon-2.0.0.pre.alpha lib/locomotive/wagon/commands/concerns/steam_concern.rb