public
Description: Annotate ActiveRecord models as a gem
Homepage: http://agilewebdevelopment.com/plugins/annotate_models
Clone URL: git://github.com/ctran/annotate_models.git
commit  60fc98a2525dbb00374776945e53af67f1c3ccf8
tree    480a0bde8a57aad611c8bbcb247fc7294a60a7d5
parent  7b5d2ed74fa2f4161dbd15ea838c6886a3839650
annotate_models / bin / annotate
100644 15 lines (10 sloc) 0.359 kb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env ruby
 
require 'optparse'
require 'annotate_models/tasks'
 
task = "annotate_models"
 
OptionParser.new do |opts|
  opts.banner = "Usage: annotate [options]"
  opts.on('-d', '--delete') { task = "remove_annotation" }
  opts.on('-p', '--position [before|after]', ['before', 'after']) { |p| ENV['position'] = p }
end.parse!
 
Rake::Task[task].invoke