Skip to content
This repository


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Logging output from rakes to db

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 .document
Octocat-spinner-32 .gitignore
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 LICENSE.txt
Octocat-spinner-32 README.rdoc
Octocat-spinner-32 Rakefile
Octocat-spinner-32 VERSION
Octocat-spinner-32 rake_bubbler.gemspec

rake-bubbler gem

This gem allows capturing raketask output along with additional information (task name, duration, start time, error) while preserving old rake behavior. Such functionality can be useful for logging and monitoring purposes.

Actions and prerequisites are captured as well.


Configuration should be included in Rakefile:

RakeBubbler::RakeBubbler.config do |config|

  # tasks to be captured (default none)
  config.tasks = ['db:migrate', 'upload']

  config.executed = do |task_name, duration, output, started, error|
    puts task_name  => "example_task"
    puts duration   => 3.0709819
    puts output     => "Example output\n"
    puts started    => Thu Nov 03 11:13:27 +0100 2011
    puts error      => nil

  # additional conditions required to capture data (optional)
  config.conditions = do
    [true, false][rand(2)]


Executed option parameters


Name of the task.


Real task duration with actions and prerequisites.


Task output captured from stdout.


Time when task execution began.


Exception captured during task execution. Nil if none.

Contributing to rake-bubbler

  • Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet

  • Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it

  • Fork the project

  • Start a feature/bugfix branch

  • Commit and push until you are happy with your contribution

  • Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.

  • Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.


Copyright © 2011 See LICENSE.txt for further details.

Something went wrong with that request. Please try again.