staging/lib/vcap/staging/plugin/rails3/database_support.rb
# return host, port, username, password, and database
return host, port, username, password, and database
return host port username password and database
def credentials_from(binding)
    creds = binding[:credentials]
    unless creds
      puts "Database binding failed to include credentials: #{binding.inspect}"
      exit 1
    end
    { 'host' => creds[:hostname], 'port' => creds[:port],
      'username' => creds[:user], 'password' => creds[:password],
      'database' => creds[:name] }
  end
def credentials_from ( binding ) creds = binding [ :credentials ] unless creds puts "Database binding failed to include credentials: #{binding.inspect}" exit 1 end { 'host' => creds [ :hostname ] , 'port' => creds [ :port ] , 'username' => creds [ :user ] , 'password' => creds [ :password ] , 'database' => creds [ :name ] } end
return host, port, username, password, and database
return host port username password and database
binding