lib/contexto/contextualize.rb in contexto-0.2.2 vs lib/contexto/contextualize.rb in contexto-0.2.3
- old
+ new
@@ -18,16 +18,16 @@
def run
if connect?
task = describe_tasks
ec2_instance_id = describe_container_instance(task[:container_instance_arn])
- @ssh = Contexto::SSH.new(describe_instances(ec2_instance_id), cluster, service, container)
+ @connection = Contexto::SSH.new(describe_instances(ec2_instance_id), cluster, service, container)
if console
- @ssh.console
+ @connection.console
elsif ssh
- @ssh.ssh
+ @connection.ssh
elsif rake
- @ssh.rake(rake)
+ @connection.rake(rake)
end
return
end
if !cluster
show_clusters