Sha256: 487c57df45dc69aa2ed846d5841af50ebd9de3c3a61085817db3dd861c793cf4

Contents?: true

Size: 378 Bytes

Versions: 23

Compression:

Stored size: 378 Bytes

Contents

# frozen_string_literal: true

namespace :thredded do
  namespace :install do
    desc 'Copy emoji to the Rails `public/emoji` directory'
    task :emoji do
      require 'emoji'

      target = Rails.application.root.join('public')
      STDERR.puts "Copying emoji to #{target}"
      `mkdir -p '#{target}' && cp -Rp '#{Emoji.images_path}/emoji' '#{target}'`
    end
  end
end

Version data entries

23 entries across 23 versions & 2 rubygems

Version Path
thredded-0.15.5 lib/tasks/thredded_tasks.rake
thredded-0.15.4 lib/tasks/thredded_tasks.rake
thredded-0.15.3 lib/tasks/thredded_tasks.rake
thredded-0.15.2 lib/tasks/thredded_tasks.rake
thredded-0.15.1 lib/tasks/thredded_tasks.rake
threddedDANIEL-0.14.5 lib/tasks/thredded_tasks.rake
thredded-0.14.4 lib/tasks/thredded_tasks.rake
thredded-0.14.3 lib/tasks/thredded_tasks.rake
thredded-0.14.2 lib/tasks/thredded_tasks.rake
thredded-0.14.1 lib/tasks/thredded_tasks.rake
thredded-0.14.0 lib/tasks/thredded_tasks.rake
thredded-0.13.8 lib/tasks/thredded_tasks.rake
thredded-0.13.7 lib/tasks/thredded_tasks.rake
thredded-0.13.6 lib/tasks/thredded_tasks.rake
thredded-0.13.5 lib/tasks/thredded_tasks.rake
thredded-0.13.4 lib/tasks/thredded_tasks.rake
thredded-0.13.3 lib/tasks/thredded_tasks.rake
thredded-0.13.2 lib/tasks/thredded_tasks.rake
thredded-0.13.1 lib/tasks/thredded_tasks.rake
thredded-0.13.0 lib/tasks/thredded_tasks.rake