Sha256: 1a100c54199ec46eb0b84b97f418df579430a0e9f207cf51b27f4e13135d9ab8

Contents?: true

Size: 357 Bytes

Versions: 7

Compression:

Stored size: 357 Bytes

Contents

Application.load 'lib/smartkiosk/sidekiq'

module Orders
  class RebootWorker
    include Sidekiq::Worker

    sidekiq_options :queue => :orders

    def perform(order_id)
      StartupWorker.perform_async self.class.name, :finish, [order_id]
      Terminal.reboot
    end

    def self.finish(order_id)
      Order.find(order_id).complete
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
smartkiosk-client-0.0.10 app/workers/orders/reboot_worker.rb
smartkiosk-client-0.0.9 app/workers/orders/reboot_worker.rb
smartkiosk-client-0.0.8 app/workers/orders/reboot_worker.rb
smartkiosk-client-0.0.7 app/workers/orders/reboot_worker.rb
smartkiosk-client-0.0.6 app/workers/orders/reboot_worker.rb
smartkiosk-client-0.0.5 app/workers/orders/reboot_worker.rb
smartkiosk-client-0.0.4 app/workers/orders/reboot_worker.rb