Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 25 lines (22 sloc) 0.95 kb
a2c4a99 Elad Meidar Plugin structure
authored
1 # Install hook code here
9b637f7 Elad Meidar Added BlackBirdHelper, install.rb and the JS library itself
authored
2 puts "Copying files..."
3 dir = "javascripts"
4 ["blackbird.js"].each do |js_file|
5 dest_file = File.join(Rails.root, "public", dir, js_file)
6 src_file = File.join(File.dirname(__FILE__) , dir, js_file)
7 FileUtils.cp_r(src_file, dest_file)
8 end
9
10 dir = "stylesheets"
11 ["blackbird.css"].each do |css_file|
12 dest_file = File.join(Rails.root, "public", dir, css_file)
13 src_file = File.join(File.dirname(__FILE__) , dir, css_file)
14 FileUtils.cp_r(src_file, dest_file)
15 end
16
17 dir = "images"
459791b Elad Meidar Simple fix in install.rb
authored
18 ["blackbird_panel.png", "blackbird_icons.png"].each do |img_file|
9b637f7 Elad Meidar Added BlackBirdHelper, install.rb and the JS library itself
authored
19 dest_file = File.join(Rails.root, "public", dir, img_file)
20 src_file = File.join(File.dirname(__FILE__) , dir, img_file)
21 FileUtils.cp_r(src_file, dest_file)
22 end
23 puts "Images were copied to your applications public/images folder, if you wish to change that, remember to change any background-image reference on the blackbird.css file."
459791b Elad Meidar Simple fix in install.rb
authored
24
9b637f7 Elad Meidar Added BlackBirdHelper, install.rb and the JS library itself
authored
25 puts "Files copied - Installation complete!"
Something went wrong with that request. Please try again.