class EcsDeployCli::Runner
Public Class Methods
new(parser)
click to toggle source
# File lib/ecs_deploy_cli/runner.rb, line 14 def initialize(parser) @parser = parser end
Public Instance Methods
diff()
click to toggle source
# File lib/ecs_deploy_cli/runner.rb, line 38 def diff EcsDeployCli::Runners::Diff.new(@parser).run! end
run_task!(task_name, launch_type:, security_groups:, subnets:)
click to toggle source
# File lib/ecs_deploy_cli/runner.rb, line 30 def run_task!(task_name, launch_type:, security_groups:, subnets:) EcsDeployCli::Runners::RunTask.new(@parser).run!(task_name, launch_type: launch_type, security_groups: security_groups, subnets: subnets) end
setup!()
click to toggle source
# File lib/ecs_deploy_cli/runner.rb, line 18 def setup! EcsDeployCli::Runners::Setup.new(@parser).run! end
ssh(**options)
click to toggle source
# File lib/ecs_deploy_cli/runner.rb, line 34 def ssh(**options) EcsDeployCli::Runners::SSH.new(@parser).run!(options) end
update_crons!()
click to toggle source
# File lib/ecs_deploy_cli/runner.rb, line 26 def update_crons! EcsDeployCli::Runners::UpdateCrons.new(@parser).run! end
update_services!(service: nil, timeout: 500)
click to toggle source
# File lib/ecs_deploy_cli/runner.rb, line 42 def update_services!(service: nil, timeout: 500) EcsDeployCli::Runners::UpdateServices.new(@parser).run!(service: service, timeout: timeout) end
validate!()
click to toggle source
# File lib/ecs_deploy_cli/runner.rb, line 22 def validate! EcsDeployCli::Runners::Validate.new(@parser).run! end
Private Instance Methods
_update_task(definition)
click to toggle source
# File lib/ecs_deploy_cli/runner.rb, line 48 def _update_task(definition) ecs_client.register_task_definition( definition ).to_h[:task_definition] end