#!/usr/bin/env ruby require 'rubygems' require 'annotate-sequel' begin require 'bundler' Bundler.setup rescue Exception => e puts e.backtrace end here = File.expand_path(File.dirname __FILE__) $:<< "#{here}/../lib" require File.expand_path('config/environment') target = { :klass => AnnotateSequel::Model, :task => :do_annotations, } target[:klass].send(target[:task])