Class: Bob::Builder

Inherits:
Object
  • Object
show all
Defined in:
lib/bob/builder.rb

Direct Known Subclasses

Test::BuilderStub

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#buildableObject (readonly)

Returns the value of attribute buildable.



3
4
5
# File 'lib/bob/builder.rb', line 3

def buildable
  @buildable
end

Instance Method Details

#buildObject



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