Class: Redirus::ServerCLI
- Inherits:
-
Object
- Object
- Redirus::ServerCLI
- Includes:
- Singleton
- Defined in:
- lib/redirus/server_cli.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
9 10 11 |
# File 'lib/redirus/server_cli.rb', line 9 def end |
Instance Method Details
#parse(args = ARGV) ⇒ Object
11 12 13 14 |
# File 'lib/redirus/server_cli.rb', line 11 def parse(args = ARGV) (args) validate! end |
#run ⇒ Object
16 17 18 19 20 21 22 23 24 25 26 |
# File 'lib/redirus/server_cli.rb', line 16 def run sidekiq_cli = Sidekiq::CLI.instance args = queues + [ '-c', '1', '-r', runner_path, [:config_path] ] sidekiq_cli.parse(args) sidekiq_cli.run end |