def taps_client(op, opts)
Taps::Config.verify_database_url(opts[:database_url])
if opts[:resume_filename]
Taps::Cli.new([]).clientresumexfer(op, opts)
else
info = heroku.database_session(app)
replacement_host = case
when ENV["TAPS_HOST"] then ENV["TAPS_HOST"]
when RUBY_VERSION >= '1.9' then "taps19.heroku.com"
else nil
end
if replacement_host
info["url"].gsub!("taps3.heroku.com", replacement_host)
end
opts[:remote_url] = info['url']
opts[:session_uri] = info['session']
Taps::Cli.new([]).clientxfer(op, opts)
end
end