Module: Bob

Defined in:
lib/bob.rb,
lib/bob/scm.rb,
lib/bob/engine.rb,
lib/bob/builder.rb,
lib/bob/scm/git.rb,
lib/bob/scm/svn.rb,
lib/bob/scm/abstract.rb,
lib/bob/engine/threaded.rb,
lib/bob/test/builder_stub.rb

Defined Under Namespace

Modules: Engine, SCM, Test Classes: Builder

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.directoryObject

Directory where the code for the different buildables will be checked out. Make sure the user running Bob is allowed to write to this directory.



19
20
21
# File 'lib/bob.rb', line 19

def self.directory
  Pathname(@directory || "/tmp")
end

.engineObject

What will you use to build in background. Must respond to call and take a block which will be run “in background”. The default is to run in foreground.



26
27
28
# File 'lib/bob.rb', line 26

def self.engine
  @engine || Engine::Foreground
end

.loggerObject

What to log with (must implement ruby’s Logger interface). Logs to STDOUT by default.



32
33
34
# File 'lib/bob.rb', line 32

def self.logger
  @logger || Logger.new(STDOUT)
end

Class Method Details

.build(buildable) ⇒ Object



13
14
15
# File 'lib/bob.rb', line 13

def self.build(buildable)
  Builder.new(buildable).build
end