lib/seira/pods.rb in seira-0.8.3 vs lib/seira/pods.rb in seira-0.9.0

- old
+ new

@@ -68,11 +68,10 @@ def run_connect tier = nil pod_name = pod_name dedicated = false command = 'sh' - args.each do |arg| if arg.start_with? '--tier=' tier = arg.split('=')[1] elsif arg.start_with? '--pod=' pod_name = arg.split('=')[1] @@ -179,9 +178,9 @@ end end def connect_to_pod(name, command = 'sh') puts "Connecting to #{name}..." - system("kubectl exec -ti #{name} --namespace=#{app} -- #{command}") + system("kubectl exec -ti #{name} --namespace=#{app} -- #{context[:settings].terminal_prefix(app, context[:cluster])} #{command}") end end end