Skip to content

Instantly share code, notes, and snippets.

Last active August 29, 2015 14:21
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
# git repo
export PATH=/var/vcap/packages/ruby/bin:$PATH:/var/vcap/packages/buildpacks/bin/:
echo "Ruby Version ---> $(ruby -v)"
cat << EOS > testing_openssl.rb
require 'net/http'
require 'uri'
uri = URI('')
Net::HTTP.start(, uri.port,
:use_ssl => uri.scheme == 'https') do |http|
request = uri
puts "port #{uri.port} host #{} before use_ssl? #{http.use_ssl?}"
response = http.request request # Net::HTTPResponse object
uri = URI.parse("")
req ="/")
http =,uri.port)
puts "port #{uri.port} host #{} before use_ssl? #{http.use_ssl?}"
puts "after #{http.use_ssl?}"
resp = http.request(req)
puts resp.code
puts "OpenSSL::OPENSSL_VERSION = #{OpenSSL::OPENSSL_VERSION} #{defined?(OpenSSL::SSL)} OpenSSL::SSL #{OpenSSL::SSL} "
ruby testing_openssl.rb
echo "sourcing .... cf_buildpack"
. cf_buildpack
echo "----> installing gem bundle"
#bundle install --jobs=3 --retry=3
echo "----> installed gem bundle running tests"
bundle exec rake test:units
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment