Class: ForestLiana::Bootstraper
- Inherits:
-
Object
- Object
- ForestLiana::Bootstraper
- Defined in:
- lib/forest_liana/bootstraper.rb
Instance Method Summary collapse
-
#initialize(app) ⇒ Bootstraper
constructor
A new instance of Bootstraper.
- #perform ⇒ Object
Constructor Details
#initialize(app) ⇒ Bootstraper
Returns a new instance of Bootstraper.
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/forest_liana/bootstraper.rb', line 4 def initialize(app) @app = app @integration_stripe_valid = false @integration_intercom_valid = false if ForestLiana.secret_key && ForestLiana.auth_key FOREST_LOGGER.warn "DEPRECATION WARNING: The use of " \ "ForestLiana.secret_key and ForestLiana.auth_key " \ "(config/initializers/forest_liana.rb) is deprecated. Please use " \ "ForestLiana.env_secret and ForestLiana.auth_secret instead." ForestLiana.env_secret = ForestLiana.secret_key ForestLiana.auth_secret = ForestLiana.auth_key end end |
Instance Method Details
#perform ⇒ Object
20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/forest_liana/bootstraper.rb', line 20 def perform fetch_models check_integrations_setup namespace_duplicated_models create_factories if ForestLiana.env_secret create_apimap require_lib_forest_liana send_apimap end end |