Module: RailsTalks::Runner
- Defined in:
- lib/rails-talks/runner.rb
Class Method Summary collapse
Class Method Details
.run_rake(opts, before = nil, after = nil) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/rails-talks/runner.rb', line 9 def run_rake(opts, before = nil, after = nil) before ||= "Rake task '#{opts[0]}' started" after ||= "Rake task '#{opts[0]}' ended" Talks.info before system "bundle exec rake #{opts[0..-1]}" Talks.info after end |
.run_tests(opts) ⇒ Object
5 6 7 |
# File 'lib/rails-talks/runner.rb', line 5 def run_tests(opts) run_rake(opts, 'Rails tests started', 'Rails tests ended') end |