Sha256: 3ff740fe620ba12ce51ef41f9c7e27cb6b930d8e52f59f9f93407b73c7a1d2de

Contents?: true

Size: 596 Bytes

Versions: 4

Compression:

Stored size: 596 Bytes

Contents

require 'roo_on_rails/checks/sidekiq/sidekiq'
require 'roo_on_rails/checks/base'
require 'thor'

module RooOnRails
  module Checks
    module Sidekiq
      class Settings < Base
        requires Sidekiq
        def intro
          'Checking Sidekiq settings.yml...'
        end

        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
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
roo_on_rails-1.10.0 lib/roo_on_rails/checks/sidekiq/settings.rb
roo_on_rails-1.9.0 lib/roo_on_rails/checks/sidekiq/settings.rb
roo_on_rails-1.8.1 lib/roo_on_rails/checks/sidekiq/settings.rb
roo_on_rails-1.8.0 lib/roo_on_rails/checks/sidekiq/settings.rb