Class: Wolfpack::CLI
- Inherits:
-
Thor
- Object
- Thor
- Wolfpack::CLI
- Defined in:
- lib/wolfpack.rb
Instance Method Summary collapse
Instance Method Details
#exec(command) ⇒ Object
88 89 90 91 92 93 94 |
# File 'lib/wolfpack.rb', line 88 def exec(command) # Parse out an integer for the # of processors the user specifies since # thor doesn't return an integer for its params. processes = [:processes].to_i if [:processes] Wolfpack::Runner.new(command, [:args], [:config]).run(processes) end |
#processors ⇒ Object
102 103 104 |
# File 'lib/wolfpack.rb', line 102 def processors puts Wolfpack.processor_count end |