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