Sha256: d119b04c938149680fb59b495af07509a5b268926c8d700107e7cc5381fdfa29

Contents?: true

Size: 546 Bytes

Versions: 1

Compression:

Stored size: 546 Bytes

Contents

# frozen_string_literal: true

require "decidim/cdtb/tasks"

namespace :cdtb do
  namespace :users do
    desc <<~EODESC
      Fix Decidim::User's nicknames.
    EODESC
    task fix_nicknames: [:environment] do
      fixer= ::Decidim::Cdtb::Fixes::NicknameFixer.new
      fixer.execute!
    end

    desc <<~EODESC
      Remove Decidim::User's by IDs in a CSV.
    EODESC
    task :remove, %i[csv_file] => [:environment] do |_taks, args|
      service = ::Decidim::Cdtb::Users::Remover.new(args.csv_file)
      service.execute!
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
decidim-cdtb-0.1.6 lib/tasks/users.rake