Sha256: 252a3a94a096db9c3c79190ebb53e70fc7b4f7b65212a2fdaf4e843ec1ec9701

Contents?: true

Size: 607 Bytes

Versions: 6

Compression:

Stored size: 607 Bytes

Contents

#
# This runner will simply use the SchemaTenant
#

require_relative './base_runner'
require_relative '../tenants/schema_tenant'

module Penthouse
  module Runners
    class SchemaRunner < BaseRunner

      # @param tenant_identifier [String, Symbol] The identifier for the tenant
      # @return [Penthouse::Tenants::BaseTenant] An instance of a tenant
      def load_tenant(tenant_identifier:, previous_tenant_identifier: 'public')
        Tenants::SchemaTenant.new(identifier: tenant_identifier, tenant_schema: tenant_identifier, previous_schema: previous_tenant_identifier)
      end

    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
penthouse-0.13.2 lib/penthouse/runners/schema_runner.rb
penthouse-0.13.1 lib/penthouse/runners/schema_runner.rb
penthouse-0.13 lib/penthouse/runners/schema_runner.rb
penthouse-0.12.2 lib/penthouse/runners/schema_runner.rb
penthouse-0.12.1 lib/penthouse/runners/schema_runner.rb
penthouse-0.12.0 lib/penthouse/runners/schema_runner.rb