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

Version Path
workarea-core-3.5.27 lib/tasks/insights.rake
workarea-core-3.5.26 lib/tasks/insights.rake
workarea-core-3.5.25 lib/tasks/insights.rake
workarea-core-3.5.23 lib/tasks/insights.rake
workarea-core-3.5.22 lib/tasks/insights.rake
workarea-core-3.5.21 lib/tasks/insights.rake
workarea-core-3.5.20 lib/tasks/insights.rake
workarea-core-3.5.19 lib/tasks/insights.rake
workarea-core-3.5.18 lib/tasks/insights.rake