Sha256: 86a2e59bbb8dd63e1188f835147388c40ee131c85d75bcda5cebd0b1ad5179ce

Contents?: true

Size: 289 Bytes

Versions: 6

Compression:

Stored size: 289 Bytes

Contents

require 'thor'
require 'sidekiq/job_alert'

module Sidekiq
  module JobAlert
    class CLI < Thor
      desc "alert config", "Send sidekiq queue alert to slack"
      option :config
      def alert
        Sidekiq::JobAlert::Notifier.new(options[:config]).call
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
sidekiq-job_alert-0.1.5 lib/sidekiq/job_alert/cli.rb
sidekiq-job_alert-0.1.4 lib/sidekiq/job_alert/cli.rb
sidekiq-job_alert-0.1.3 lib/sidekiq/job_alert/cli.rb
sidekiq-job_alert-0.1.2 lib/sidekiq/job_alert/cli.rb
sidekiq-job_alert-0.1.1 lib/sidekiq/job_alert/cli.rb
sidekiq-job_alert-0.1.0 lib/sidekiq/job_alert/cli.rb