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
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 |
# File 'lib/chemistrykit/cli/cli.rb', line 46 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'] # replace certain config values with run time flags as needed config = override_configs , config 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 |