Sha256: 9034b30d6f84d80d2d79f8427b6c8915ea0dd5f463a1ce97d18d3e7a0af2c521

Contents?: true

Size: 585 Bytes

Versions: 8

Compression:

Stored size: 585 Bytes

Contents

module ProconBypassMan
  class UpdateRemotePbmActionStatusCommand
    # @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::UpdateRemotePbmActionStatusHttpClient.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.5 lib/procon_bypass_man/remote_pbm_action/commands/update_remote_pbm_action_status_command.rb
procon_bypass_man-0.3.4 lib/procon_bypass_man/remote_pbm_action/commands/update_remote_pbm_action_status_command.rb
procon_bypass_man-0.3.3.1 lib/procon_bypass_man/remote_pbm_action/commands/update_remote_pbm_action_status_command.rb
procon_bypass_man-0.3.3 lib/procon_bypass_man/remote_pbm_action/commands/update_remote_pbm_action_status_command.rb
procon_bypass_man-0.3.2 lib/procon_bypass_man/remote_pbm_action/commands/update_remote_pbm_action_status_command.rb
procon_bypass_man-0.3.1 lib/procon_bypass_man/remote_pbm_action/commands/update_remote_pbm_action_status_command.rb
procon_bypass_man-0.3.0 lib/procon_bypass_man/remote_pbm_action/commands/update_remote_pbm_action_status_command.rb
procon_bypass_man-0.2.3 lib/procon_bypass_man/remote_pbm_action/commands/update_remote_pbm_action_status_command.rb