Class: Catechism::Cli
Instance Method Summary collapse
Instance Method Details
#run_all_trials ⇒ Object
10 11 12 |
# File 'lib/catechism/cli.rb', line 10 def run_all_trials Dir.glob('trials/**/*_trial.rb') { |trial_path| run_trial(trial_path) } end |
#run_trial(trial_path) ⇒ Object
5 6 7 |
# File 'lib/catechism/cli.rb', line 5 def run_trial(trial_path) Kernel.system("bundle exec ruby #{trial_path}") && puts("#{trial_path} was successful.") end |