Sha256: d456a98c7a46c9d733cd0a7186ea22e218076bc3ac30248036b49294758de0b7
Contents?: true
Size: 689 Bytes
Versions: 1
Compression:
Stored size: 689 Bytes
Contents
desc "Copy GitLab emojis to public/images directory" task :emoji do require 'gitlab_emoji' require 'emoji' # Copy the emojis from the 'emoji' gem ENV['TARGET']='assets/images/' Rake::Task["emoji:install_assets"].execute project_target = ENV['GITLAB_TARGET'] ||= File.join(Rails.root, 'app/assets/images/emoji') source = File.absolute_path(File.dirname(__FILE__) + '/../../assets/images') unless File.exists?(project_target) puts "- Creating #{project_target}..." FileUtils.mkdir_p(project_target) end puts "Copying emojis:" Dir.glob("#{source}/*").entries.each do |asset| FileUtils.cp_r(asset, project_target, verbose: true, preserve: false) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gitlab_emoji-0.0.1 | lib/tasks/copy.rake |