Sha256: c03436a3f38227192825de66dbfb539b22cdc909b8d0d37fede40ed7fce861f5

Contents?: true

Size: 504 Bytes

Versions: 13

Compression:

Stored size: 504 Bytes

Contents

class ProconBypassMan::PostCompletedRemoteMacroJob < ProconBypassMan::BaseJob
  extend ProconBypassMan::HasExternalApiSetting

  # @param [Symbol] status
  def self.perform(job_id)
    ProconBypassMan::RemoteMacroHttpClient.new(
      path: path,
      server: api_server,
    ).post(job_id: job_id)
  end

  def self.path
    device_id = ProconBypassMan.device_id
    "/api/devices/#{ProconBypassMan.device_id}/completed_pbm_remote_macro_jobs"
  end

  def self.re_enqueue_if_failed
    true
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
procon_bypass_man-0.3.12 lib/procon_bypass_man/background/jobs/post_completed_remote_macro_job.rb
procon_bypass_man-0.3.11 lib/procon_bypass_man/background/jobs/post_completed_remote_macro_job.rb
procon_bypass_man-0.3.10 lib/procon_bypass_man/background/jobs/post_completed_remote_macro_job.rb
procon_bypass_man-0.3.9 lib/procon_bypass_man/background/jobs/post_completed_remote_macro_job.rb
procon_bypass_man-0.3.8.1 lib/procon_bypass_man/background/jobs/post_completed_remote_macro_job.rb
procon_bypass_man-0.3.8 lib/procon_bypass_man/background/jobs/post_completed_remote_macro_job.rb
procon_bypass_man-0.3.7 lib/procon_bypass_man/background/jobs/post_completed_remote_macro_job.rb
procon_bypass_man-0.3.6 lib/procon_bypass_man/background/jobs/post_completed_remote_macro_job.rb
procon_bypass_man-0.3.5 lib/procon_bypass_man/background/jobs/post_completed_remote_macro_job.rb
procon_bypass_man-0.3.4 lib/procon_bypass_man/background/jobs/post_completed_remote_macro_job.rb
procon_bypass_man-0.3.3.1 lib/procon_bypass_man/background/jobs/post_completed_remote_macro_job.rb
procon_bypass_man-0.3.3 lib/procon_bypass_man/background/jobs/post_completed_remote_macro_job.rb
procon_bypass_man-0.3.2 lib/procon_bypass_man/background/jobs/post_completed_remote_macro_job.rb