Class: Bob::Builder
- Inherits:
-
Object
- Object
- Bob::Builder
- Defined in:
- lib/bob/builder.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#buildable ⇒ Object
readonly
Returns the value of attribute buildable.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(buildable) ⇒ Builder
constructor
A new instance of Builder.
Constructor Details
#initialize(buildable) ⇒ Builder
Returns a new instance of Builder.
5 6 7 |
# File 'lib/bob/builder.rb', line 5 def initialize(buildable) @buildable = buildable end |
Instance Attribute Details
#buildable ⇒ Object (readonly)
Returns the value of attribute buildable.
3 4 5 |
# File 'lib/bob/builder.rb', line 3 def buildable @buildable end |
Instance Method Details
#build ⇒ Object
9 10 11 12 13 14 |
# File 'lib/bob/builder.rb', line 9 def build scm.with_commit(buildable["commit"]) { |commit| started(scm.(commit)) completed(*run) } end |