Sha256: 24ab9afcf7ce620baa98432fbce53976cdd2e9fa567ac1c459bfc8a06dc7d6c1

Contents?: true

Size: 534 Bytes

Versions: 1

Compression:

Stored size: 534 Bytes

Contents

# frozen_string_literal: true

require "decidim/version"
require "decidim/cdtb/tasks"

namespace :cdtb do
  namespace :embeds do
    desc <<~EODESC
      Fix YouTube embeds to Decidim v0.28 format.
      Only youtube is supported right now.
    EODESC
    task fix_youtube: [:environment] do
      unless Decidim.version >= "0.28"
        puts "This command is only compatible with Decidim v0.28 or higher"
        exit(-1)
      end

      fixer= ::Decidim::Cdtb::Fixes::YouTubeEmbedsFixer.new
      fixer.execute!
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
decidim-cdtb-0.3.0 lib/tasks/fix_youtube_embeds.rake