Class: ChemistryKit::CLI::CKitCLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/chemistrykit/cli/cli.rb

Instance Method Summary collapse

Instance Method Details

#brewObject



35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/chemistrykit/cli/cli.rb', line 35

def brew
  load_config
  require 'chemistrykit/shared_context'
  pass_params if options['params']
  turn_stdout_stderr_on_off
  set_logs_dir
  load_page_objects
  setup_tags
  rspec_config

  if options['beaker']
    run_rspec([options['beaker']])
  else
    run_rspec(Dir.glob(File.join(Dir.getwd)))
  end
end