Sha256: a4bc593ebe5055e9a3f2135a66e6d28ea50032ad376b0037ffae4f10b3c347ac
Contents?: true
Size: 738 Bytes
Versions: 8
Compression:
Stored size: 738 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, env: options[:env]&.to_sym || :local } config.asset_path = File.expand_path(File.join(path, 'public')) config.minify_assets = false 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
8 entries across 8 versions & 1 rubygems