1
0
Fork 0

remove pgsql command for now

trunk
Thomas 2 years ago
parent 466facc295
commit dff5d8c4ed

@ -12,9 +12,6 @@ OptionParser.new do |opts|
opts.on("-l", "--logs", "Tail logs for current branch's deployment") do |l|
options[:logs] = l
end
opts.on("-p", "--psql-shell", "Shell into postgresql instance for current branch's deployment") do |l|
options[:psql] = l
end
opts.on("-s", "--shell", "Shell into current branch's deployment") do |l|
options[:shell] = l
end
@ -65,12 +62,6 @@ if options[:logs]
exit 0
end
if options[:psql]
puts "Psql shell for pg-#{current_app(args.app)}-#{feature}-0"
system("HTTPS_PROXY=localhost:8888 kubectl exec -ti --namespace=#{current_app(args.app)} pg-#{current_app(args.app)}-#{feature}-0 -- /bin/sh")
exit 0
end
if options[:shell]
puts "Shell for #{current_deployment(current_app(args.app), feature)}"
system("HTTPS_PROXY=localhost:8888 kubectl exec -ti --namespace=#{current_app(args.app)} #{current_deployment(current_app(args.app), feature)} -- /bin/sh")

Loading…
Cancel
Save