lib/tasks/emojione.rake in emojione-rails-0.0.4 vs lib/tasks/emojione.rake in emojione-rails-0.0.5
- old
+ new
@@ -1,7 +1,10 @@
+require 'fileutils'
+
desc "Copy emojione to the Rails `public/images/emojione` directory"
task :emojione do
require 'emojione-rails'
target = "#{Rake.original_dir}/public/images"
- `mkdir -p #{target} && cp -Rp #{Emojione.images_path}/emojione #{target}`
+ FileUtils.mkdir_p(target)
+ FileUtils.cp_r File.join(Emojione.images_path,'emojione'), target, :preserve => true
end