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.
16 17 18 |
# File 'lib/redirus/server_cli.rb', line 16 def @options end |
Instance Method Details
#parse(args = ARGV) ⇒ Object
18 19 20 21 |
# File 'lib/redirus/server_cli.rb', line 18 def parse(args = ARGV) (args) validate! end |
#run ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 |
# File 'lib/redirus/server_cli.rb', line 23 def run sidekiq_cli = Sidekiq::CLI.instance args = queues + [ '-c', '1', '-r', runner_path, [:config_path] ] sidekiq_cli.parse(args) sidekiq_cli.run end |