Class: RooOnRails::Checks::Sidekiq::Settings

Inherits:
Base
  • Object
show all
Defined in:
lib/roo_on_rails/checks/sidekiq/settings.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize, requires, #run

Methods included from Helpers

#bold, included

Constructor Details

This class inherits a constructor from RooOnRails::Checks::Base

Instance Method Details

#callObject



14
15
16
17
18
19
20
21
22
23
# File 'lib/roo_on_rails/checks/sidekiq/settings.rb', line 14

def call
  if File.exist?('config/sidekiq.yml')
    message = [
      'Custom Sidekiq settings found.',
      'Please see the Roo On Rails readme for more information.'
    ].join("\n")

    fail! message
  end
end

#introObject



10
11
12
# File 'lib/roo_on_rails/checks/sidekiq/settings.rb', line 10

def intro
  'Checking Sidekiq settings.yml...'
end