Sha256: 86c932ada250b054bb49cef6f9135fab0e65ef1fac853f5cde1602ade60819cf
Contents?: true
Size: 528 Bytes
Versions: 2
Compression:
Stored size: 528 Bytes
Contents
desc "Report code statistics (KLOCs, etc) from the current (or given) application" task :stats, [:path, :format] do |t, args| Rake::Task["stats"].clear # clear out normal one if there require 'rails_stats/all' path = args[:path] path = Rails.root.to_s if defined?(Rails) fmt = args[:format] || "" raise "no path given for stats" unless path root_directory = File.absolute_path(path) puts "\nDirectory: #{root_directory}\n\n" if args[:path] RailsStats::CodeStatistics.new(root_directory, format: fmt).to_s end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails_stats-2.0.1 | lib/rails_stats/tasks.rb |
rails_stats-2.0.0 | lib/rails_stats/tasks.rb |