Job scheduler for codem-transcode, written in Rails.
Ruby HTML CSS JavaScript
Latest commit bd4da88 Nov 17, 2016 @bartzon bartzon Freezing capybara
Permalink
Failed to load latest commit information.
app
bin Rubocop updates Jun 16, 2014
config Renamed config option per deprecation warning Sep 28, 2015
db
lib
public Enabled asset pipeline Mar 29, 2012
script Updated with Bootstrap Apr 10, 2012
spec
vendor
.gitignore Ignoring .ruby-* May 21, 2014
.gitmodules
.rspec Initial import Feb 24, 2011
.rubocop.yml Rubocop updates Jun 16, 2014
.travis.yml
.yardopts Added yardopts May 11, 2011
Gemfile Freezing capybara Nov 17, 2016
Guardfile Rubocop updates Jun 16, 2014
LICENSE.txt Added license May 9, 2011
README.markdown
Rakefile New init May 4, 2011
config.ru New init May 4, 2011

README.markdown

Build Status Dependency Status Code Climate

Codem Scheduler

The Codem Scheduler is part of the Codem open source video transcoder platform. This application manages the scheduling and handling of jobs via a webfrontend and an API.

Install instructions

You'll need a Ruby on Rails installation, served by the webserver of your choice. Please note: Ruby 1.9.3 or greater is required, Ruby 2.0 is preferred. See http://rubyonrails.org/download for installation instructions.

Database

The preferred database backend for the Scheduler is either MySQL or SQLite. One of these should be available to the Scheduler. If you're using MySQL, you can enter your connection details in config/database.yml.

If you want to use SQLite, you need to perform some changes. In Gemfile, change mysql2 to sqlite3 and run bundle install. In config/database.yml, remove the username and password, and specify the location of your database. The preferred location is db/codem_schedule_#{environment}.db.

1 Either clone the git repository or download a packaged archive.

$ git clone git://github.com/madebyhiro/codem-schedule.git
or
visit https://github.com/madebyhiro/codem-schedule/archives/master

2 Install the required gems.

$ gem install bundler
$ bundle install

3 Run the installer rake task, which will setup the application.

$ bundle exec rake codem:install

4 Use cron or a similar tool to trigger the status update task. For example, to run the task every 2 minutes, use:

*/2 * * * * curl -s http://localhost:3000/api/schedule

5 Start the server, and you're ready to go!

$ bundle exec rails server

Update instructions

To update the Scheduler to the latest version, just run:

$ bundle exec rake codem:update

API documentation

View the API documentation at http://rubydoc.info/github/madebyhiro/codem-schedule/master/frames

Tests

Tests are written in rspec and can be run with

$ bundle exec rspec

License

Codem-transcode is released under the MIT license, see LICENSE.txt.