Sha256: b9bb2d65953b7af56974bd34ab7eea3b5ca7b6fb9907f5363c38dd52e5a3ea55
Contents?: true
Size: 592 Bytes
Versions: 12
Compression:
Stored size: 592 Bytes
Contents
# Pull in tasks from AF::Noid af_noid_path = Gem.loaded_specs['active_fedora-noid'].full_gem_path load "#{af_noid_path}/lib/tasks/noid_tasks.rake" namespace :sufia do namespace :noid do desc 'Migrate minter state file' task migrate_statefile: :environment do ENV['AFNOID_STATEFILE'] = Sufia.config.minter_statefile Rake::Task['active_fedora:noid:migrate_statefile'].invoke if needs_migration?(Sufia.config.minter_statefile) end end end def needs_migration?(statefile) !!YAML.load(File.open(statefile).read) rescue Psych::SyntaxError, Errno::ENOENT false end
Version data entries
12 entries across 12 versions & 1 rubygems