Sha256: 0a9d5554c8ea163992cedcb66cd76b5157bd6da32c0d68f7059429150c025258

Contents?: true

Size: 408 Bytes

Versions: 3

Compression:

Stored size: 408 Bytes

Contents

# Periodically fetch the developer platform configuration
module Maestrano::Connector::Rails::Concerns::UpdateConfigurationJob
  extend ActiveSupport::Concern

  included do
    queue_as :default
  end

  def perform
    return if ENV['SKIP_CONFIGURATION']
    Maestrano.reset!
    Maestrano.auto_configure
  rescue StandardError => e
    Rails.logger.warn "Cannot load configuration #{e.message}"
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
maestrano-connector-rails-2.3.2 app/jobs/maestrano/connector/rails/concerns/update_configuration_job.rb
maestrano-connector-rails-2.3.1 app/jobs/maestrano/connector/rails/concerns/update_configuration_job.rb
maestrano-connector-rails-2.3.0 app/jobs/maestrano/connector/rails/concerns/update_configuration_job.rb