#!/usr/bin/ruby # Linkr is a really simple link sharing site! # # == Installing # 1. sudo gem install camping-omnibus --source http://code.whytheluckystiff.net # 2. camping linkr.rb -d linkr.db -s mongrel # Have fun! %w(camping camping/session redcloth active_support builder).each { |l| require l } Camping.goes :Linkr %w(helpers models views controllers).each { |l| require "linkr/#{l}" } module Linkr include Camping::Session # Change this to the name of the variable set by your # Apache server containing the current username. def self.remote_user_property_name "AUTHENTICATE_UID" # or maybe HTTP_REMOTE_USER end def self.create Camping::Models::Session.create_schema Linkr::Models.create_schema end end