Class: ProconBypassMan::UpdateRemotePbmJobStatusCommand
- Inherits:
-
Object
- Object
- ProconBypassMan::UpdateRemotePbmJobStatusCommand
- Defined in:
- lib/procon_bypass_man/remote_action/remote_pbm_job/commands/update_remote_pbm_job_status_command.rb
Instance Method Summary collapse
- #execute(to_status:) ⇒ void
-
#initialize(pbm_job_uuid:) ⇒ UpdateRemotePbmJobStatusCommand
constructor
A new instance of UpdateRemotePbmJobStatusCommand.
Constructor Details
#initialize(pbm_job_uuid:) ⇒ UpdateRemotePbmJobStatusCommand
Returns a new instance of UpdateRemotePbmJobStatusCommand.
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.
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 |