Sha256: 126697caf07311e3a4b5a700d99d75118162c06efd64de21e284ef05c3ae7ada

Contents?: true

Size: 743 Bytes

Versions: 1

Compression:

Stored size: 743 Bytes

Contents

puts "Copying assets..."

images_source = File.join(File.dirname(__FILE__), "assets", "images")
stylesheets_source = File.join(File.dirname(__FILE__), "assets", "stylesheets", "message_block.css")

images_target = File.join(RAILS_ROOT, "public", "images", "message_block")
stylesheets_target = File.join(RAILS_ROOT, "public", "stylesheets", "message_block.css")

unless File.exists?(images_target)
  FileUtils.cp_r(images_source, images_target)
  puts "  Copied Images"
else
  puts "  Images appear to already be installed, not copying."
end

unless File.exists?(stylesheets_target)
  FileUtils.cp(stylesheets_source, stylesheets_target)
  puts "  Copied Stylesheet"
else
  puts "  Stylesheet appears to already be installed, not copying"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
railsgarden-message_block-0.1.0 install.rb