Class: Helios::Sitemap::RefreshService

Inherits:
Object
  • Object
show all
Defined in:
lib/helios/sitemap/refresh_service.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.callObject



9
10
11
# File 'lib/helios/sitemap/refresh_service.rb', line 9

def self.call
  new.call
end

Instance Method Details

#callObject



13
14
15
16
17
18
19
# File 'lib/helios/sitemap/refresh_service.rb', line 13

def call
  config = Helios::Sitemap.configuration

  generate_sitemap(config)
  upload_to_s3(config) unless Rails.env.development?
  submit_to_indexnow(config)
end