Class: ProconBypassMan::UpdateRemotePbmJobStatusCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/procon_bypass_man/remote_action/remote_pbm_job/commands/update_remote_pbm_job_status_command.rb

Instance Method Summary collapse

Constructor Details

#initialize(pbm_job_uuid:) ⇒ UpdateRemotePbmJobStatusCommand

Returns a new instance of UpdateRemotePbmJobStatusCommand.

Parameters:

  • pbm_job_uuid (String)


4
5
6
# File 'lib/procon_bypass_man/remote_action/remote_pbm_job/commands/update_remote_pbm_job_status_command.rb', line 4

def initialize(pbm_job_uuid: )
  @pbm_job_uuid = pbm_job_uuid
end

Instance Method Details

#execute(to_status:) ⇒ void

This method returns an undefined value.

Parameters:

  • to_status (String)


10
11
12
13
14
15
# File 'lib/procon_bypass_man/remote_action/remote_pbm_job/commands/update_remote_pbm_job_status_command.rb', line 10

def execute(to_status: )
  ProconBypassMan::UpdateRemotePbmJobStatusHttpClient.new(
    path: path,
    server: ProconBypassMan.config.api_server,
  ).put(to_status: to_status)
end