Sha256: 3c58f6b758e1f767cbfbe84415d9fbee919c2b98d2cd93b414979ffd543aca84

Contents?: true

Size: 579 Bytes

Versions: 8

Compression:

Stored size: 579 Bytes

Contents

module ProconBypassMan
  class UpdateRemotePbmJobStatusCommand
    # @param [String] pbm_job_uuid
    def initialize(pbm_job_uuid: )
      @pbm_job_uuid = pbm_job_uuid
    end

    # @param [String] to_status
    # @return [void]
    def execute(to_status: )
      ProconBypassMan::UpdateRemotePbmJobStatusHttpClient.new(
        path: path,
        server: ProconBypassMan.config.api_server,
      ).put(to_status: to_status)
    end

    private

    # @return [String]
    def path
      "/api/devices/#{ProconBypassMan.device_id}/pbm_jobs/#{@pbm_job_uuid}"
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
procon_bypass_man-0.3.12 lib/procon_bypass_man/remote_action/remote_pbm_job/commands/update_remote_pbm_job_status_command.rb
procon_bypass_man-0.3.11 lib/procon_bypass_man/remote_action/remote_pbm_job/commands/update_remote_pbm_job_status_command.rb
procon_bypass_man-0.3.10 lib/procon_bypass_man/remote_action/remote_pbm_job/commands/update_remote_pbm_job_status_command.rb
procon_bypass_man-0.3.9 lib/procon_bypass_man/remote_action/remote_pbm_job/commands/update_remote_pbm_job_status_command.rb
procon_bypass_man-0.3.8.1 lib/procon_bypass_man/remote_action/remote_pbm_job/commands/update_remote_pbm_job_status_command.rb
procon_bypass_man-0.3.8 lib/procon_bypass_man/remote_action/remote_pbm_job/commands/update_remote_pbm_job_status_command.rb
procon_bypass_man-0.3.7 lib/procon_bypass_man/remote_action/remote_pbm_job/commands/update_remote_pbm_job_status_command.rb
procon_bypass_man-0.3.6 lib/procon_bypass_man/remote_action/remote_pbm_job/commands/update_remote_pbm_job_status_command.rb