Class: ForestLiana::Bootstrapper
- Inherits:
-
Object
- Object
- ForestLiana::Bootstrapper
- Defined in:
- lib/forest_liana/bootstrapper.rb
Constant Summary collapse
- SCHEMA_FILENAME =
File.join(Dir.pwd, '.forestadmin-schema.json')
Instance Method Summary collapse
- #display_apimap ⇒ Object
-
#initialize ⇒ Bootstrapper
constructor
A new instance of Bootstrapper.
- #synchronize(with_feedback = false) ⇒ Object
Constructor Details
#initialize ⇒ Bootstrapper
Returns a new instance of Bootstrapper.
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/forest_liana/bootstrapper.rb', line 8 def initialize @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 fetch_models check_integrations_setup namespace_duplicated_models create_factories generate_apimap if ForestLiana.env_secret end |
Instance Method Details
#display_apimap ⇒ Object
33 34 35 36 37 |
# File 'lib/forest_liana/bootstrapper.rb', line 33 def display_apimap if ForestLiana.env_secret puts " = Current Forest Apimap:\n#{JSON.pretty_generate(get_apimap_serialized)}" end end |
#synchronize(with_feedback = false) ⇒ Object
29 30 31 |
# File 'lib/forest_liana/bootstrapper.rb', line 29 def synchronize(with_feedback=false) send_apimap(with_feedback) if ForestLiana.env_secret end |