vidibus-version_scheduler

Created: 2011-07-11 11:55
Updated: 2015-02-09 14:23
License: mit

README.md

Vidibus::VersionScheduler Build Status Code Climate

Schedules migration to future versions created by Vidibus::Versioning.

This gem is part of Vidibus, an open source toolset for building distributed (video) applications.

Installation

Add gem "vidibus-version_scheduler" to your Gemfile. Then call bundle install on your console.

Usage

To use scheduling on a versioned model, just include the lib and you're done:

class Book
  include Mongoid::Document
  include Vidibus::Versioning::Mongoid
  include Vidibus::VersionScheduler::Mongoid
end

Whenever a version gets created that has a future created_at timestamp, a DelayedJob will be created to migrate your model to that version at the specified time. The job will be added to a queue named "versioning".

TODO

  • Solve the serious bug with DelayedJob and Mongoid. See ISSUES.md

Copyright

© 2011-2013 Andre Pankratz. See LICENSE for details.

Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more