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
jaggederest (author)
Thu Jun 19 14:10:56 -0700 2008
commit  605732e5aa0d663b42725147d59d6384e3b9b8af
tree    398ed9368a01cfe21d65c01b0c72f06ff4c2667d
parent  a462b78209142604f9bbd718e7abd72f8c49c898
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