Class: Bombard::Runner
- Inherits:
-
Object
- Object
- Bombard::Runner
- Defined in:
- lib/bombard/runner.rb
Instance Attribute Summary collapse
-
#conf ⇒ Object
readonly
Returns the value of attribute conf.
Instance Method Summary collapse
- #build ⇒ Object
- #builder ⇒ Object
-
#initialize(opts) ⇒ Runner
constructor
A new instance of Runner.
- #load_requirements ⇒ Object
- #publish ⇒ Object
- #publisher ⇒ Object
- #results ⇒ Object
Constructor Details
Instance Attribute Details
#conf ⇒ Object (readonly)
Returns the value of attribute conf.
5 6 7 |
# File 'lib/bombard/runner.rb', line 5 def conf @conf end |
Instance Method Details
#build ⇒ Object
33 34 35 36 |
# File 'lib/bombard/runner.rb', line 33 def build puts "Building using:\n\t#{builder}" builder.with_opts(@conf.builder_opts) end |
#builder ⇒ Object
28 29 30 31 |
# File 'lib/bombard/runner.rb', line 28 def builder # TODO: Need a sane default or simply fail if not specified. @builder ||= @conf.builder ? class_for(@conf.builder, Bombard::Builder) : Bombard::Builder::Test end |
#load_requirements ⇒ Object
38 39 40 |
# File 'lib/bombard/runner.rb', line 38 def load_requirements require_all @conf.require if @conf.require end |
#publish ⇒ Object
23 24 25 26 |
# File 'lib/bombard/runner.rb', line 23 def publish puts "Publishing using:\n\t#{publisher}" publisher.for(results).with_opts(@conf.publisher_opts).publish end |