Sha256: 390aaef3c3184cc4c3645fbc6b86865cfc4e78bcb3bb5578778f9de79ce8f2e3
Contents?: true
Size: 623 Bytes
Versions: 1
Compression:
Stored size: 623 Bytes
Contents
# Context module Contexto # SSH class class SSH def initialize(ipaddress, cluster, service, container) @ipaddress = ipaddress @cluster = cluster @service = service @container = container @bastion_host = 'bastion.empatico.xyz' @bastion_user = '' @user_name = 'ec2-user' @options = {} connect end def connect cmd = "ssh -t -A #{@bastion_host} \"ssh -t ec2-user@#{@ipaddress} 'docker exec -it \\$(docker ps | grep ecs-#{@cluster}-#{@service}-.*-#{@container} | cut -d\\ -f1) bin/rails c'\"" puts cmd end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
contexto-0.1.1 | lib/contexto/ssh.rb |