Class: RSpec::Conductor::CLI
- Inherits:
-
Object
- Object
- RSpec::Conductor::CLI
- Defined in:
- lib/rspec/conductor/cli.rb
Constant Summary collapse
- DEFAULTS =
{ workers: 4, offset: 0, first_is_1: false, seed: nil, fail_fast_after: nil, verbose: false, display_retry_backtraces: false, prefork_require: 'config/application.rb', postfork_require: :spec_helper, }.freeze
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(argv) ⇒ CLI
constructor
A new instance of CLI.
- #run ⇒ Object
Constructor Details
#initialize(argv) ⇒ CLI
Returns a new instance of CLI.
24 25 26 27 28 |
# File 'lib/rspec/conductor/cli.rb', line 24 def initialize(argv) @argv = argv = DEFAULTS.dup @rspec_args = [] end |
Class Method Details
.run(argv) ⇒ Object
20 21 22 |
# File 'lib/rspec/conductor/cli.rb', line 20 def self.run(argv) new(argv).run end |
Instance Method Details
#run ⇒ Object
30 31 32 33 |
# File 'lib/rspec/conductor/cli.rb', line 30 def run parse_arguments start_server end |