Sha256: 763dd65ccd92b7d196e9c904a5c016fb1a13e725347556771f8565a6b428e9e8
Contents?: true
Size: 786 Bytes
Versions: 3
Compression:
Stored size: 786 Bytes
Contents
#!/usr/bin/env ruby unless File.exist?('./Rakefile') || File.exist?('./Gemfile') abort 'Please run annotate from the root of the project.' end require 'rubygems' begin require 'bundler' Bundler.setup rescue StandardError end here = File.expand_path(File.dirname __FILE__) $LOAD_PATH << "#{here}/../lib" require 'annotate' require 'annotate/parser' Annotate.bootstrap_rake options_result = Annotate::Parser.parse(ARGV) exit if options_result[:exit] options = Annotate.setup_options( is_rake: ENV['is_rake'] && !ENV['is_rake'].empty? ) Annotate.eager_load(options) if Annotate.include_models? AnnotateModels.send(options_result[:target_action], options) if Annotate.include_models? AnnotateRoutes.send(options_result[:target_action], options) if Annotate.include_routes?
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
annotate-3.0.3 | bin/annotate |
annotate-3.0.2 | bin/annotate |
annotate-3.0.0 | bin/annotate |