Module CI

  1. lib/dash-ci.rb (view online)
  2. lib/dash-ci/target.rb (view online)
  3. lib/dash-ci/session.rb (view online)
  4. lib/dash-ci/base.rb (view online)
  5. show all

Methods

public class

  1. clean
  2. get
  3. register
  4. run
  5. set

Classes and Modules

Class CI::Base
Class 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