Sha256: 941c29f64b99784ee9b433badbcb591f1361b5214a627ec5f6b5bc45c2b9d99b

Contents?: true

Size: 586 Bytes

Versions: 1

Compression:

Stored size: 586 Bytes

Contents

module DiscoApp::Concerns::AppInstalledJob
  extend ActiveSupport::Concern

  included do
    before_enqueue { @shop.awaiting_install! }
    before_perform { @shop.installing! }
    after_perform { @shop.installed! }
  end

  # Perform application installation.
  #
  # - Synchronise webhooks.
  # - Synchronise carrier services.
  # - Perform initial update of shop information.
  #
  def perform(domain)
    DiscoApp::SynchroniseWebhooksJob.perform_now(domain)
    DiscoApp::SynchroniseCarrierServicesJob.perform_now(domain)
    DiscoApp::ShopUpdateJob.perform_now(domain)
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
disco_app-0.6.6 app/jobs/disco_app/concerns/app_installed_job.rb