Module: Railscope::Subscribers::CommandSubscriber::TaskInstrumentation

Defined in:
lib/railscope/subscribers/command_subscriber.rb

Overview

Module to intercept new task definitions

Instance Method Summary collapse

Instance Method Details

#define_task(*args, &block) ⇒ Object



47
48
49
50
51
# File 'lib/railscope/subscribers/command_subscriber.rb', line 47

def define_task(*args, &block)
  task = super
  CommandSubscriber.send(:instrument_task, task) if task.is_a?(Rake::Task)
  task
end