Module: Bob
- Defined in:
- lib/bob.rb,
lib/bob/scm.rb,
lib/bob/builder.rb,
lib/bob/scm/git.rb,
lib/bob/scm/svn.rb,
lib/bob/buildable.rb,
lib/bob/scm/abstract.rb,
lib/bob/background_engines.rb,
lib/bob/background_engines/threaded.rb,
lib/bob/background_engines/foreground.rb
Defined Under Namespace
Modules: BackgroundEngines, Buildable, SCM Classes: Builder
Class Attribute Summary collapse
-
.directory ⇒ Object
Directory where the code for the different buildables will be checked out.
-
.engine ⇒ Object
What will you use to build in background.
-
.logger ⇒ Object
What to log with (must implement ruby’s Logger interface).
Class Method Summary collapse
-
.build(buildable, commit_ids) ⇒ Object
Builds the specified
buildable
.
Class Attribute Details
.directory ⇒ Object
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.
23 24 25 |
# File 'lib/bob.rb', line 23 def self.directory @directory || "/tmp" end |
.engine ⇒ Object
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.
29 30 31 |
# File 'lib/bob.rb', line 29 def self.engine @engine || BackgroundEngines::Foreground end |
.logger ⇒ Object
What to log with (must implement ruby’s Logger interface). Logs to STDOUT by default.
35 36 37 |
# File 'lib/bob.rb', line 35 def self.logger @logger || Logger.new(STDOUT) end |