Closed jefferya closed 4 years ago
Purpose: create a rake task in the ualbertalib namespace to batch update the visibility property on a set of MediaObjects.
ualbertalib
Given an input file with MediaObject ids, one-per-line, update the MediaObject's visibility property
-c
Meant to be executed in two stages:
valid
bundle exec rake avalon:ualbertalib:visibility_restricted -m /tmp/z -c
bundle exec rake avalon:ualbertalib:visibility_restricted -m /tmp/z
Purpose: create a rake task in the
ualbertalib
namespace to batch update the visibility property on a set of MediaObjects.Given an input file with MediaObject ids, one-per-line, update the MediaObject's visibility property
-c
flag is required)Meant to be executed in two stages:
-c
flag): to test if the visibility property change will leave the MediaObject in avalid
statebundle exec rake avalon:ualbertalib:visibility_restricted -m /tmp/z -c
-c
flag): to commit the change identified by the dry-runbundle exec rake avalon:ualbertalib:visibility_restricted -m /tmp/z