assemblymade/coderwall

View on GitHub
app/workers/sitemap_refresh_worker.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method perform has 29 lines of code (exceeds 25 allowed). Consider refactoring.
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/"
Severity: Minor
Found in app/workers/sitemap_refresh_worker.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status