Class: EcsDeployCli::Runner

Inherits:
Object
  • Object
show all
Defined in:
lib/ecs_deploy_cli/runner.rb

Instance Method Summary collapse

Constructor Details

#initialize(parser) ⇒ Runner

Returns a new instance of Runner.



14
15
16
# File 'lib/ecs_deploy_cli/runner.rb', line 14

def initialize(parser)
  @parser = parser
end

Instance Method Details

#diffObject



38
39
40
# 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:) ⇒ Object



30
31
32
# 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!Object



18
19
20
# File 'lib/ecs_deploy_cli/runner.rb', line 18

def setup!
  EcsDeployCli::Runners::Setup.new(@parser).run!
end

#ssh(**options) ⇒ Object



34
35
36
# File 'lib/ecs_deploy_cli/runner.rb', line 34

def ssh(**options)
  EcsDeployCli::Runners::SSH.new(@parser).run!(options)
end

#update_crons!Object



26
27
28
# 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) ⇒ Object



42
43
44
# 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!Object



22
23
24
# File 'lib/ecs_deploy_cli/runner.rb', line 22

def validate!
  EcsDeployCli::Runners::Validate.new(@parser).run!
end