Sha256: e1dd9955b0a309f778a395958a3b82addec10879dce6b385b6ae2824640e5abb

Contents?: true

Size: 382 Bytes

Versions: 11

Compression:

Stored size: 382 Bytes

Contents

module O2h
  extend self

  autoload :VERSION, 'o2h/version'

  def capistrano(required = :require)
    defined?(Capistrano) and Capistrano::Configuration.instance(required)
  end

  def initialize!
    # use app mode only when we are not in capistrano
    unless capistrano(false)
      app_mode
    end
  end

  def app_mode
    require 'newrelic_rpm'
  end

end

O2h.initialize!

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
o2h-0.1.10 lib/o2h.rb
o2h-0.1.9 lib/o2h.rb
o2h-0.1.8 lib/o2h.rb
o2h-0.1.7 lib/o2h.rb
o2h-0.1.6 lib/o2h.rb
o2h-0.1.5 lib/o2h.rb
o2h-0.1.4 lib/o2h.rb
o2h-0.1.3 lib/o2h.rb
o2h-0.1.2 lib/o2h.rb
o2h-0.1.1 lib/o2h.rb
o2h-0.1.0 lib/o2h.rb