Class: TestProf::Autopilot::Runner

Inherits:
Object
  • Object
show all
Includes:
Dsl
Defined in:
lib/test_prof/autopilot/runner.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from Dsl

#aggregate, #info, #run, #save

Instance Attribute Details

#reportObject (readonly)

Returns the value of attribute report.



14
15
16
# File 'lib/test_prof/autopilot/runner.rb', line 14

def report
  @report
end

Class Method Details

.invoke(plan_path, command) ⇒ Object



17
18
19
20
21
22
23
24
25
26
# File 'lib/test_prof/autopilot/runner.rb', line 17

def invoke(plan_path, command)
  Autopilot.configure do |config|
    config.plan_path = plan_path
    config.command = command
  end

  Logging.log "Reading #{plan_path}..."

  new.instance_eval(File.read(Autopilot.config.plan_path))
end