Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- require 'rake'
- require 'rake/rdoctask'
- require 'rake/testtask'
- require 'tasks/rails'
- def capture_stdout
- s = StringIO.new
- oldstdout = $stdout
- $stdout = s
- yield
- s.string
- ensure
- $stdout = oldstdout
- end
- Rake.application.rake_require '../../lib/tasks/metric_fetcher'
- results = capture_stdout {Rake.application['metric_fetcher'].invoke}
Add Comment
Please, Sign In to add comment