Skip to content
A client library for Gitlocker, including a Rails ActiveRecord plugin
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
test
.gitignore
README.textile
Rakefile
gitlocker-client.gemspec

README.textile

This is a client for Gitlocker and it includes a Rails plugin.

The Rails plugin isn’t fully tested yet, it’s still being actively developed. Fortunately it’s fairly simple!

Installation

  1. gem install gitlocker
  2. gem install gitlocker-client
  3. Run gitlocker: gitlocker
  4. Add the plugin to your project’s environment.rb file: config.gem 'gitlocker-client', :lib => 'rails'
  5. Add gitlocker to one of your models

gitlocker 'http://localhost:4567', :fields => :source, :repo_id => Proc.new { |d| "my_app_#{d.user_id}" }

Gitlocker should be installed somewhere as a proper rack app for production.

Something went wrong with that request. Please try again.