Sha256: 488aa8d2bf070ab64650f4774f3c5edcfcbf7bb27670d0d232307810b5a49de3

Contents?: true

Size: 844 Bytes

Versions: 1

Compression:

Stored size: 844 Bytes

Contents

# Copyright (c) 2013 by Tracelytics, Inc.
# All rights reserved.

begin
  if ENV.has_key?('TRACEVIEW_URL')
    require 'oboe_metal.so'
    require 'heroku_metal'
    require 'oboe-heroku/loading'
    require 'oboe-heroku/version'

    # Require the core oboe gem
    require 'oboe'

    ::OboeHeroku::Loading.initialize
  else
    $stderr.puts "The TraceView addon is not part of this application.  You can either run "
    $stderr.puts "'heroku addons:add traceview' or remove the oboe-heroku gem from your bundle."
  end
rescue LoadError
  if ENV.has_key?('TRACEVIEW_DEBUG_LEVEL') and (ENV['TRACEVIEW_DEBUG_LEVEL'].to_i > 1)
    $stderr.puts "[oboe-heroku/error] Could not load oboe-heroku dependencies."
  end
rescue Exception => e
  $stderr.puts "[oboe-heroku/error] Problem loading: #{e.inspect}"
  $stderr.puts e.backtrace.join("\n")
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
oboe-heroku-0.8.0.27.beta1 lib/oboe-heroku.rb