Sha256: efc3fa410b50479e462288bab7cc64d3e70eb3148ed1fc62bc85c08384bfc7f6

Contents?: true

Size: 596 Bytes

Versions: 9

Compression:

Stored size: 596 Bytes

Contents

require 'workarea/tasks/help'

namespace :workarea do
  desc 'Drop and recreate help articles (Warning: all current help will be deleted!)'
  task reload_help: :environment do
    puts 'Deleting help articles...'
    Workarea::Tasks::Help.reload
    Rake::Task['workarea:search_index:help'].invoke
  end

  desc 'Upgrade help (creates only new articles that do not exist in the database)'
  task upgrade_help: :environment do
    Workarea::HelpSeeds.new.perform
    Rake::Task['workarea:search_index:help'].invoke
  end

  task dump_help: :environment do
    Workarea::Tasks::Help.dump
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

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