Class: TestProf::Autopilot::ProfilingExecutor::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/test_prof/autopilot/profiling_executor/base.rb

Overview

Provides base command and env variables building; Calls command executor; Builds report.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Base

Returns a new instance of Base.



19
20
21
# File 'lib/test_prof/autopilot/profiling_executor/base.rb', line 19

def initialize(options)
  @options = options
end

Instance Attribute Details

#reportObject (readonly)

Returns the value of attribute report.



17
18
19
# File 'lib/test_prof/autopilot/profiling_executor/base.rb', line 17

def report
  @report
end

Instance Method Details

#startObject



23
24
25
26
27
28
29
30
# File 'lib/test_prof/autopilot/profiling_executor/base.rb', line 23

def start
  validate_profiler!

  execute
  build_report

  self
end