Class: ChemistryKit::CLI::CKitCLI
- Inherits:
-
Thor
- Object
- Thor
- ChemistryKit::CLI::CKitCLI
- Defined in:
- lib/chemistrykit/cli/cli.rb
Overview
Main Chemistry Kit CLI Class
Instance Method Summary collapse
Instance Method Details
#brew ⇒ Object
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
# File 'lib/chemistrykit/cli/cli.rb', line 43 def brew config = load_config ['config'] # TODO perhaps the params should be rolled into the available # config object injected into the system? pass_params if ['params'] turn_stdout_stderr_on_off set_logs_dir load_page_objects # configure rspec rspec_config(config) # get those beakers that should be executed beakers = ['beakers'] ? ['beakers'] : Dir.glob(File.join(Dir.getwd, 'beakers/*')) # based on concurrency parameter run tests if config.concurrency > 1 && ! ['parallel'] run_in_parallel beakers, config.concurrency else run_rspec beakers end end |