app/workers/sitemap_refresh_worker.rb
Method perform
has 29 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def perform
# ArgumentError: Missing host to link to! Please provide the :host parameter, set default_path_options[:host], or set :only_path to true
SitemapGenerator::Sitemap.default_host = 'https://coderwall.com'
SitemapGenerator::Sitemap.public_path = 'tmp/'
SitemapGenerator::Sitemap.sitemaps_host = "http://#{ENV['FOG_DIRECTORY']}.s3.amazonaws.com/"