Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
19 lines (15 sloc) 591 Bytes
require 'fileutils'
unless defined?(RAILS_ROOT)
RAILS_ROOT = File.expand_path( File.join(File.dirname(__FILE__), '../../../') )
end
['images', 'stylesheets', 'javascripts'].each do |folder|
if folder == 'images'
unless FileTest.exist? File.join(RAILS_ROOT, 'public', 'images', 'super_finder')
FileUtils.mkdir( File.join(RAILS_ROOT, 'public', 'images', 'super_finder') )
end
end
FileUtils.cp(
Dir[File.join(File.dirname(__FILE__), 'assets', folder, '*')],
File.join([RAILS_ROOT, 'public', folder, folder == 'images' ? 'super_finder' : nil].compact)
)
end