Permalink
Browse files

Fixed rake task and installation script.

  • Loading branch information...
magpieuk committed Feb 5, 2010
1 parent 5b2f1a2 commit 6c6487977768b29b32d31be23771e4905b1b3cad
Showing with 3 additions and 3 deletions.
  1. +2 −2 bin/refinery_testimonial_install.rb
  2. +1 −1 lib/tasks/refinery_testimonials.rake
@@ -10,12 +10,12 @@
copies = [
{:from => ["db", "migrate"],:to => ["db", "migrate"],:filename => "20100203164921_create_testimonials.rb"},
- {:from => ["public", "stylesheets"],:to => ["public", "stylesheets"],:filename => "testimonials"},
+ {:from => ["public", "stylesheets"],:to => ["public", "stylesheets"],:filename => "testimonials.css"},
{:from => ["public", "images"],:to => ["public", "images"],:filename => "close_quote.gif"},
{:from => ["public", "images"],:to => ["public", "images"],:filename => "open_quote.gif"}
]
copies.each do |copy|
- copy_from = File.join(REFINEERY_TESTIMONIALS_ROOT_ROOT, copy[:from], copy[:filename])
+ copy_from = File.join(REFINEERY_TESTIMONIALS_ROOT, copy[:from], copy[:filename])
copy_to = File.join(RAILS_ROOT, copy[:to], copy[:filename])
unless File.exists?(copy_to)
FileUtils::copy_file copy_from, copy_to
@@ -2,6 +2,6 @@ namespace :refinery_testimonial do
desc "Install extra files from the refinery testimonial plugin"
task :install do
- puts `ruby #{File.expand_path(File.dirname(__FILE__) << '/../..')}/bin/refinery_testimonial_install #{RAILS_ROOT}`
+ puts `ruby #{File.expand_path(File.dirname(__FILE__) << '/../..')}/bin/refinery_testimonial_install.rb #{RAILS_ROOT}`
end
end

0 comments on commit 6c64879

Please sign in to comment.