public
Description: A Rails plugin to create tests for you when your app throws an unhandled exception
Homepage: http://www.culann.com/2008/03/and-the-greatest-of-these-is-laziness
Clone URL: git://github.com/bscofield/laziness.git
laziness / install.rb
100644 11 lines (9 sloc) 0.555 kb
1
2
3
4
5
6
7
8
9
10
11
require 'fileutils'
 
root_path = File.dirname(__FILE__)
puts IO.read(File.join(root_path, 'README'))
 
if File.exists?(File.join(root_path, '..', 'exception_notification', 'views', 'exception_notifier', 'exception_notification.rhtml'))
  # copy laziness partial into exception notifier directory
  laziness_view_path = File.join(root_path, 'views', '_laziness.rhtml')
  notifier_views_path = File.join(root_path, '..', 'exception_notification', 'views', 'exception_notifier', '_laziness.rhtml')
  FileUtils.copy laziness_view_path, notifier_views_path
end