Sha256: 75ad370a880870915019f38f9fc6e060f22f646d5e1b588f4c44ef71e212e807
Contents?: true
Size: 1023 Bytes
Versions: 30
Compression:
Stored size: 1023 Bytes
Contents
namespace :pageflow do desc 'Generate dummy app for current Rails version.' task :dummy do require 'pageflow/support' Pageflow::Dummy.setup end namespace :node_package do desc 'Build node package' task :build do system('bin/npm ci && bin/npm run build') end end namespace :release do task :pageflow_support do Dir.chdir('spec/support') do puts '=== Releasing pageflow-support ===' system('bundle exec rake release') puts '===' end end end namespace :prune_auto_snapshots_jobs do desc 'Enqueue jobs to destroy old auto snapshot revisions' task :enqueue => :environment do options = { created_before: ENV['CREATED_BEFORE'] ? Time.parse(ENV['CREATED_BEFORE']) : 1.month.ago, keep_count: ENV.fetch('KEEP_COUNT', 20) } Pageflow::AutoSnapshotPruning.dirty_entry_ids(options).each do |entry_id| Resque.enqueue(Pageflow::PruneAutoSnapshotsJob, entry_id, options) end end end end
Version data entries
30 entries across 30 versions & 1 rubygems