Module: NewRelic::Thor

Defined in:
lib/newrelic/thor.rb

Defined Under Namespace

Modules: Instrumentation

Class Method Summary collapse

Class Method Details

.disabled?Boolean

Returns:

  • (Boolean)


16
17
18
# File 'lib/newrelic/thor.rb', line 16

def disabled?
  !!::NewRelic::Control.instance['disable_thor']
end

.startObject



11
12
13
14
15
# File 'lib/newrelic/thor.rb', line 11

def start
  return if started?
  ::NewRelic::Agent.manual_start(:dispatcher => :thor)
  @started = true
end

.started?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'lib/newrelic/thor.rb', line 8

def started?
  !!@started
end