Class: DamageControl::Visitor::BuildExecutor
- Inherits:
-
Object
- Object
- DamageControl::Visitor::BuildExecutor
- Defined in:
- lib/damagecontrol/visitor/build_executor.rb
Overview
Visitor that executes a build for each visited changeset. TODO: THIS CLASS IS NOT USED YET - FINISH IT. PASS A BLOCK TO CTOR.
Instance Method Summary collapse
-
#initialize(project, description) ⇒ BuildExecutor
constructor
Creates a new BuildExecutor that will build the project for each visited changeset.
- #visit_change(change) ⇒ Object
- #visit_changeset(changeset) ⇒ Object
- #visit_changesets(changesets) ⇒ Object
Constructor Details
#initialize(project, description) ⇒ BuildExecutor
Creates a new BuildExecutor that will build the project for each visited changeset. The description
will be persisted with the build information to record what triggered the build.
14 15 16 |
# File 'lib/damagecontrol/visitor/build_executor.rb', line 14 def initialize(project, description) @project = project end |
Instance Method Details
#visit_change(change) ⇒ Object
27 28 |
# File 'lib/damagecontrol/visitor/build_executor.rb', line 27 def visit_change(change) end |
#visit_changeset(changeset) ⇒ Object
21 22 23 24 25 |
# File 'lib/damagecontrol/visitor/build_executor.rb', line 21 def visit_changeset(changeset) Log.info "Checking out changeset #{changeset.id} for #{@project.name}" project.checkout(changeset.id) Log.info "Building #{@project.name}" end |
#visit_changesets(changesets) ⇒ Object
18 19 |
# File 'lib/damagecontrol/visitor/build_executor.rb', line 18 def visit_changesets(changesets) end |