Class: Shiprails::Ship::Exec

Inherits:
Thor::Group
  • Object
show all
Includes:
Thor::Actions
Defined in:
lib/shiprails/ship/exec.rb

Instance Method Summary collapse

Instance Method Details

#run_commandObject



30
31
32
33
34
35
# File 'lib/shiprails/ship/exec.rb', line 30

def run_command
  cluster_name = "#{project_name}_#{environment}"
  command_string = args.join ' '
  ssh_private_key_path = private_key
  ecs_exec(region, cluster_name, service, command_string, ssh_private_key_path)
end