Sha256: 73cb5cb3875e3f2329a5f74c65c15fafe00b0660be2454bf8e4cacf421d35dbd

Contents?: true

Size: 923 Bytes

Versions: 4

Compression:

Stored size: 923 Bytes

Contents

# frozen_string_literal: true

# Check out our README: https://github.com/rmehner/uff_db_loader/blob/main/README.md

if defined?(UffDbLoader)
  UffDbLoader.configure do |config|
    config.ssh_user = 'SSH_USER'
    config.ssh_host = 'HOST_OF_YOUR_SITE'
    config.db_name = 'YOUR_DATABASE_NAME'
    config.db_system = <%= used_database_system %> # Possible values are :postgresql and :mysql
    config.environments = <%= environments %>

    # Optional settings:
    # config.app_name = 'my_app' # Defaults to the Rails app name
    # config.dumps_directory = '/path/to/dumps' # Defaults to Rails.root.join('dumps')
    # config.database_config_file = 'path/to/database.yml' # Defaults to Rails.root.join('config', 'database.yml')
    # config.container_name = ->(app_name, environment) { "#{app_name}_#{environment}_custom_suffix" } # Defaults to "#{app_name}_#{environment}_db". It accepts a static string too.
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
uff_db_loader-3.1.0 lib/uff_db_loader/templates/uff_db_loader_initializer.erb
uff_db_loader-3.0.1 lib/uff_db_loader/templates/uff_db_loader_initializer.erb
uff_db_loader-3.0.0 lib/uff_db_loader/templates/uff_db_loader_initializer.erb
uff_db_loader-2.2.0 lib/uff_db_loader/templates/uff_db_loader_initializer.erb