Skip to content

Commit

Permalink
Merge pull request #3663 from alphagov/remove-static-pages
Browse files Browse the repository at this point in the history
Remove code relating to publishing special routes
  • Loading branch information
BeckaL authored Jun 28, 2023
2 parents 0cebbb3 + 6968416 commit 5ff14ca
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 216 deletions.
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.

0 comments on commit 5ff14ca

Please sign in to comment.