Skip to main content

hmrc-manuals-api: Rake tasks

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

redirect_hmrc_manual

Redirect a manual, takes original manual slug, destination manual slug

k exec deploy/hmrc-manuals-api -- rake redirect_hmrc_manual

View source (lib/tasks/redirect_manual.rake)

redirect_hmrc_section

Redirect a section, takes original manual slug, section slug, destination manual slug and (optional) destination section slug

k exec deploy/hmrc-manuals-api -- rake redirect_hmrc_section

View source (lib/tasks/redirect_sections.rake)

redirect_hmrc_section_to_parent_manual

Redirect a section to its parent manual, takes original manual slug, section slug, destination manual slug

k exec deploy/hmrc-manuals-api -- rake redirect_hmrc_section_to_parent_manual

View source (lib/tasks/redirect_sections.rake)

redirect_all_hmrc_sections_to_parent_manual

Redirect all sections in a manual to the parent manual, takes manual slug

k exec deploy/hmrc-manuals-api -- rake redirect_all_hmrc_sections_to_parent_manual

View source (lib/tasks/redirect_sections.rake)

remove_hmrc_manuals

Takes a list of slugs of manuals to remove and makes the appropriate requests to content apis to do so

k exec deploy/hmrc-manuals-api -- rake remove_hmrc_manuals

View source (lib/tasks/remove_manuals.rake)

remove_hmrc_sections

Takes a list of slugs of section to remove and makes the appropriate requests to content apis to do so

k exec deploy/hmrc-manuals-api -- rake remove_hmrc_sections

View source (lib/tasks/remove_sections.rake)

check_sections

Takes an array of slugs for either manuals or sections and checks if any sections would be orphaned by their removal

k exec deploy/hmrc-manuals-api -- rake check_sections

View source (lib/tasks/sections_checker.rake)