Sha256: d78abf177a661b3e9581f7b931fd929e40220907b66084fe18741cc346bc864b

Contents?: true

Size: 539 Bytes

Versions: 20

Compression:

Stored size: 539 Bytes

Contents

# Statistics tasks.
#
namespace :stats do
  task :prepare => :application do
    require File.expand_path('../../picky/statistics', __FILE__)
    statistics = Statistics.instance
  end
  task :app => :prepare do
    Statistics.instance.application
    puts Statistics.instance
  end
  task :analyze => :prepare do
    begin
      Statistics.instance.analyze
    rescue StandardError
      puts "\n\033[31mNote: rake analyze needs prepared indexes. Run rake index first.\033[m\n\n"
      raise
    end
    puts Statistics.instance
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
picky-2.6.0 lib/tasks/statistics.rake
picky-2.5.2 lib/tasks/statistics.rake
picky-2.5.1 lib/tasks/statistics.rake
picky-2.5.0 lib/tasks/statistics.rake
picky-2.4.3 lib/tasks/statistics.rake
picky-2.4.2 lib/tasks/statistics.rake
picky-2.4.1 lib/tasks/statistics.rake
picky-2.4.0 lib/tasks/statistics.rake
picky-2.3.0 lib/tasks/statistics.rake
picky-2.2.1 lib/tasks/statistics.rake
picky-2.2.0 lib/tasks/statistics.rake
picky-2.1.2 lib/tasks/statistics.rake
picky-2.1.1 lib/tasks/statistics.rake
picky-2.1.0 lib/tasks/statistics.rake
picky-2.0.0 lib/tasks/statistics.rake
picky-2.0.0.pre3 lib/tasks/statistics.rake
picky-2.0.0.pre2 lib/tasks/statistics.rake
picky-2.0.0.pre1 lib/tasks/statistics.rake
picky-1.5.4 lib/tasks/statistics.rake
picky-1.5.3 lib/tasks/statistics.rake