puts
puts "------------------"

# Copy images to the project
images = File.dirname(__FILE__) + '/public/images/message_div_helpers'
images_dir = "#{RAILS_ROOT}/public/images"
FileUtils.cp_r(images, images_dir)
puts "These files were installed to %s: %s" % [ images_dir.sub("#{RAILS_ROOT}/", ""), Dir["#{images}/*"].map {|x| "message_div_helpers/#{File.basename(x)}" }.join(", ") ]

# Copy stylesheet to the project
css_file = File.dirname(__FILE__) + '/public/stylesheets/message_div_helpers.css'
stylesheets_dir = "#{RAILS_ROOT}/public/stylesheets"
FileUtils.cp(css_file, stylesheets_dir)
puts "These files were installed to %s: %s" % [ stylesheets_dir.sub("#{RAILS_ROOT}/", ""), File.basename(css_file) ]