Sha256: 74e65e7add239c70ccf5d570ce4b28e8bf4d9419456de49cdd1d1739139328d7
Contents?: true
Size: 962 Bytes
Versions: 3
Compression:
Stored size: 962 Bytes
Contents
# frozen_string_literal: true module Miteru module Commands # # Sidekiq sub-commands # module Sidekiq class << self def included(thor) thor.class_eval do desc "sidekiq", "Start Sidekiq" method_option :env, type: :string, default: "production", desc: "Environment", aliases: "-e" method_option :concurrency, type: :numeric, default: 5, desc: "Sidekiq concurrency", aliases: "-c" def sidekiq require "sidekiq/cli" ENV["APP_ENV"] ||= options["env"] concurrency = options["concurrency"].to_s cli = ::Sidekiq::CLI.instance cli.parse [ "-r", File.expand_path(File.join(__dir__, "..", "sidekiq", "application.rb")), "-c", concurrency ] cli.run end end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
miteru-3.0.0 | lib/miteru/commands/sidekiq.rb |
miteru-2.4.0 | lib/miteru/commands/sidekiq.rb |
miteru-2.3.2 | lib/miteru/commands/sidekiq.rb |