Skip to main content

specialist-publisher: Rake tasks

These rake tasks come from the desc descriptions in specialist-publisher’s lib/tasks folder. To change what’s shown here, change the description in the code.

base_path:edit

Edits the base_path of a document, given its content_id and the new base_path

k exec deploy/specialist-publisher -- rake base_path:edit[content_id,locale,new_base_path,publish]

View source (lib/tasks/base_path.rake)

base_path:edit_all

Reslugs a type’s documents under its finder’s live base_path (published redirect, drafts stay draft)

k exec deploy/specialist-publisher -- rake base_path:edit_all[document_type]

View source (lib/tasks/base_path.rake)

bulk_import_documents_from_csv

Import design decisions from a CSV file and save them with optional attachments

k exec deploy/specialist-publisher -- rake bulk_import_documents_from_csv[csv_file_path,mapping_file_path,dry_run]

View source (lib/tasks/bulk_import_documents_from_csv.rake)

dartsass:watch_poll

Watch and build your Dart Sass CSS on file changes, using polling

k exec deploy/specialist-publisher -- rake dartsass:watch_poll

View source (lib/tasks/dartsass.rake)

licence_reports:all

CSV report on licences

k exec deploy/specialist-publisher -- rake licence_reports:all

View source (lib/tasks/licence_reports.rake)

mod_afc_import_from_csv

Import armed forces covenant businesses from a CSV file and save them

k exec deploy/specialist-publisher -- rake mod_afc_import_from_csv[csv_file_path,dry_run]

View source (lib/tasks/mod_afc_import_from_csv.rake)

ops:discard

Discard the draft of document

k exec deploy/specialist-publisher -- rake ops:discard[content_id,locale]

View source (lib/tasks/ops.rake)

ops:set_public_updated_at

Set the public_updated_at for a published document

k exec deploy/specialist-publisher -- rake ops:set_public_updated_at[content_id,locale,timestamp]

View source (lib/tasks/ops.rake)

ops:override_first_published_at

Override the first_published_at for a published document

k exec deploy/specialist-publisher -- rake ops:override_first_published_at[content_id,locale,timestamp]

View source (lib/tasks/ops.rake)

publishing_api:publish_finders

Publish all Finders to the Publishing API

k exec deploy/specialist-publisher -- rake publishing_api:publish_finders

View source (lib/tasks/publishing_api.rake)

publishing_api:publish_finder

Publish a single Finder to the Publishing API

k exec deploy/specialist-publisher -- rake publishing_api:publish_finder[name]

View source (lib/tasks/publishing_api.rake)

rename_country:all

Update and republish all docs that refer to a country

k exec deploy/specialist-publisher -- rake rename_country:all[old,new]

View source (lib/tasks/rename_country.rake)

rename_country:export_health_certificates

Update and republish export health certificates that refer to a country

k exec deploy/specialist-publisher -- rake rename_country:export_health_certificates[old,new]

View source (lib/tasks/rename_country.rake)

rename_country:international_development_funds

Update and republish international development funds that refer to a country

k exec deploy/specialist-publisher -- rake rename_country:international_development_funds[old,new]

View source (lib/tasks/rename_country.rake)

republish:all

republish all documents

k exec deploy/specialist-publisher -- rake republish:all

View source (lib/tasks/republish.rake)

republish:document_type

republish all documents for the given document type

k exec deploy/specialist-publisher -- rake republish:document_type[document_type]

View source (lib/tasks/republish.rake)

republish:one

republish a single document (locale defaults to ‘en’)

k exec deploy/specialist-publisher -- rake republish:one[content_id,locale]

View source (lib/tasks/republish.rake)

republish:many

republish many documents (space separated list of content_id:locale strings)

k exec deploy/specialist-publisher -- rake republish:many[content_ids_and_locales]

View source (lib/tasks/republish.rake)

unpublish:redirect_finder

Unpublish a Finder by file name and redirect the finder page to specific URL

k exec deploy/specialist-publisher -- rake unpublish:redirect_finder[finder_file,redirect_url]

View source (lib/tasks/unpublish.rake)