Class: Penthouse::Runners::BaseRunner
- Inherits:
-
Object
- Object
- Penthouse::Runners::BaseRunner
- Defined in:
- lib/penthouse/runners/base_runner.rb
Direct Known Subclasses
Class Method Summary collapse
- .call(tenant_identifier, &block) ⇒ void
-
.load_tenant(tenant_identifier) ⇒ Penthouse::Tenants::BaseTenant
abstract
An instance of a tenant.
Class Method Details
.call(tenant_identifier, &block) ⇒ void
This method returns an undefined value.
18 19 20 21 22 23 24 |
# File 'lib/penthouse/runners/base_runner.rb', line 18 def self.call(tenant_identifier, &block) load_tenant(tenant_identifier).call do |tenant| Penthouse.with_tenant(tenant.identifier) do block.yield(tenant) end end end |
.load_tenant(tenant_identifier) ⇒ Penthouse::Tenants::BaseTenant
This method is abstract.
returns the tenant object
Returns An instance of a tenant.
30 31 32 |
# File 'lib/penthouse/runners/base_runner.rb', line 30 def self.load_tenant(tenant_identifier) raise NotImplementedError end |