Sha256: eb42eae86b80f4c4f860bea384f20dd3eceb3477a063e6ec7e7dfee49de41d4e

Contents?: true

Size: 631 Bytes

Versions: 15

Compression:

Stored size: 631 Bytes

Contents

# frozen_string_literal: true

require "rails/engine"

module Litestream
  class Engine < ::Rails::Engine
    isolate_namespace Litestream

    config.litestream = ActiveSupport::OrderedOptions.new

    # Load the `litestream:install` generator into the host Rails app
    generators do
      require_relative "generators/litestream/install_generator"
    end

    initializer "litestream.config" do
      config.litestream.each do |name, value|
        Litestream.public_send(:"#{name}=", value)
      end
    end

    initializer "deprecator" do |app|
      app.deprecators[:litestream] = Litestream.deprecator
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
litestream-0.12.0 lib/litestream/engine.rb
litestream-0.12.0-x86_64-linux lib/litestream/engine.rb
litestream-0.12.0-x86_64-darwin lib/litestream/engine.rb
litestream-0.12.0-arm64-linux lib/litestream/engine.rb
litestream-0.12.0-arm64-darwin lib/litestream/engine.rb
litestream-0.11.2 lib/litestream/engine.rb
litestream-0.11.2-x86_64-linux lib/litestream/engine.rb
litestream-0.11.2-x86_64-darwin lib/litestream/engine.rb
litestream-0.11.2-arm64-linux lib/litestream/engine.rb
litestream-0.11.2-arm64-darwin lib/litestream/engine.rb
litestream-0.11.1-x86_64-darwin lib/litestream/engine.rb
litestream-0.11.1 lib/litestream/engine.rb
litestream-0.11.1-x86_64-linux lib/litestream/engine.rb
litestream-0.11.1-arm64-linux lib/litestream/engine.rb
litestream-0.11.1-arm64-darwin lib/litestream/engine.rb