Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove code relating to publishing special routes #3663

Merged
merged 1 commit into from
Jun 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 0 additions & 42 deletions lib/homepage_publisher.rb

This file was deleted.

73 changes: 0 additions & 73 deletions lib/special_route_publisher.rb

This file was deleted.

18 changes: 0 additions & 18 deletions lib/tasks/publishing_api.rake
Original file line number Diff line number Diff line change
@@ -1,22 +1,4 @@
namespace :publishing_api do
desc "Publish special routes such as the homepage"
task publish_special_routes: :environment do
logger = Logger.new($stdout)

publisher = SpecialRoutePublisher.new(
logger:,
publishing_api: GdsApi.publishing_api,
)

SpecialRoutePublisher.routes.each do |route_type, routes_for_type|
routes_for_type.each do |route|
publisher.publish(route_type, route)
end
end

HomepagePublisher.publish!(GdsApi.publishing_api, logger)
end

desc "Publish calendars"
task publish_calendars: :environment do
%w[bank-holidays when-do-the-clocks-change].each do |calender_name|
Expand Down
41 changes: 0 additions & 41 deletions test/unit/homepage_publisher_test.rb

This file was deleted.

42 changes: 0 additions & 42 deletions test/unit/special_route_publisher_test.rb

This file was deleted.