Skip to content

Commit

Permalink
Fixed rake task and installation script.
Browse files Browse the repository at this point in the history
  • Loading branch information
magpieuk committed Feb 5, 2010
1 parent 5b2f1a2 commit 6c64879
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bin/refinery_testimonial_install.rb
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/tasks/refinery_testimonials.rake
Expand Up @@ -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.