Classes and Modules
Class CI::BaseClass CI::BrokenBuild
Class CI::InstrumentTarget
Class CI::Session
Public class methods
clean
(sym)
Sanitize name to be passed around to indicate a suite.
[show source]
# File lib/dash-ci.rb, line 33 def clean(sym) sym.to_s.gsub(/\W/, '_') end
get
(sym)
Get an instrument target class.
[show source]
# File lib/dash-ci.rb, line 38 def get(sym) CI.const_get(clean(sym).capitalize) end
register
(sym, &block)
Register a new recipe, declaring the suite it measures in the block. The actual Dash recipe generation doesn’t happen until run() though.
[show source]
# File lib/dash-ci.rb, line 22 def register(sym, &block) Base.register(sym, &block) end
run
(sym, options={})
Find the instrument target class for the given recipe, generate Dash recipe for suite, start Dash.
[show source]
# File lib/dash-ci.rb, line 28 def run(sym, options={}) Base.run(sym, options) end
set
(sym, klass)
Set an instrument target class.
[show source]
# File lib/dash-ci.rb, line 43 def set(sym, klass) CI.const_set(clean(sym).capitalize, klass) end