Skip to main content

content-block-manager: Rake tasks

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

data_migration:convert_time_period_date_range_to_datetime

Convert TimePeriod#date_range to datetime format

k exec deploy/content-block-manager -- rake data_migration:convert_time_period_date_range_to_datetime

View source (lib/tasks/convert_time_period_date_range_to_datetime.rake)

check_coverage

Check coverage of last test run

k exec deploy/content-block-manager -- rake check_coverage

View source (lib/tasks/coverage.rake)

delete_content_block

Delete content block

k exec deploy/content-block-manager -- rake delete_content_block[content_id]

View source (lib/tasks/delete_content_block.rake)

host_content_metrics:refresh_rollups

Refresh every block’s rollup of host content metrics from Publishing API

k exec deploy/content-block-manager -- rake host_content_metrics:refresh_rollups

View source (lib/tasks/host_content_metrics.rake)

lint_autocorrect

Run all linters with autocorrect

k exec deploy/content-block-manager -- rake lint_autocorrect

View source (lib/tasks/lint_autocorrect.rake)

data_migration:remove_pound_symbol_prefix_from_pension_amount_value

Remove pound symbol prefix from Pension#amount values

k exec deploy/content-block-manager -- rake data_migration:remove_pound_symbol_prefix_from_pension_amount_value

View source (lib/tasks/remove_pound_symbol_prefix_from_pension_amount_value.rake)