Class: WcoHosting::Runner
- Inherits:
-
Object
- Object
- WcoHosting::Runner
- Defined in:
- app/models/wco_hosting/runner.rb
Constant Summary collapse
- TASK_REDEPLOY_ECS_TASK_DEFINITION =
'redeploy-ecs-task-definition'- TASK_REDEPLOY_ECS_TASK =
'redeploy-ecs-task'- TASK_SYNC_ECS_TASK =
'sync-ecs-task'- TASKS =
[]
Class Method Summary collapse
Class Method Details
.create_ecs_task ⇒ Object
8 9 |
# File 'app/models/wco_hosting/runner.rb', line 8 def self.create_ecs_task end |
.do_exec(cmd) ⇒ Object
16 17 18 19 20 21 22 23 24 25 |
# File 'app/models/wco_hosting/runner.rb', line 16 def self.do_exec cmd Wco::Log.puts! cmd, '#do_exec', obj: @obj stdout, stderr, status = Open3.capture3(cmd) status = status.to_s.split.last.to_i Wco::Log.puts! stdout, 'stdout', obj: @obj Wco::Log.puts! stderr, 'stderr', obj: @obj Wco::Log.puts! status, 'status', obj: @obj return { stdout: stdout, stderr: stderr, status: status } end |