Sha256: cf40cdd19cbd021660d5104d7ecc09935fc4d08a3afab8754c0f43dbc6d8934a
Contents?: true
Size: 585 Bytes
Versions: 9
Compression:
Stored size: 585 Bytes
Contents
require 'workarea/tasks/insights' namespace :workarea do namespace :insights do desc 'Creates metrics and insights based on orders' task generate: :environment do Workarea::Tasks::Insights.generate puts "Success! Generated #{Workarea::Insights::Base.count} insights." end # Clear the metrics/insights environment - deletes lots of data, this task # is very dangerous! Useful for testing/debugging. task reset: :environment do Workarea::Tasks::Insights.reset! puts "Success! Insights and metrics have been cleared." end end end
Version data entries
9 entries across 9 versions & 1 rubygems