Sha256: 88cb0a8ef25d2f855c8b2d60540f50f42cad902fc4ba39b16b045e8a8816221c
Contents?: true
Size: 825 Bytes
Versions: 3
Compression:
Stored size: 825 Bytes
Contents
namespace :gemojione do desc "Install Emoji Image Assets" task :install_assets do target_dir = ENV['TARGET'] ||= File.join(Rails.root, 'app/assets/images/emoji') source_dir = File.absolute_path(File.dirname(__FILE__) + '/../../../assets') puts "====================================================================" puts "= emoji image assets install" puts "= Target: #{target_dir}" puts "= Source: #{source_dir}" puts "====================================================================" unless File.exists?(target_dir) puts "- Creating #{target_dir}..." FileUtils.mkdir_p(target_dir) end puts "- Installing assets..." Dir.glob("#{source_dir}/*").entries.each do |asset| FileUtils.cp_r(asset, target_dir, verbose: true, preserve: false) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
gemojione-3.1.0 | lib/gemojione/tasks/install.rake |
gemojione-3.0.1 | lib/gemojione/tasks/install.rake |
gemojione-3.0.0 | lib/gemojione/tasks/install.rake |