Sha256: ce3397f7d80675c4f1800ad8c9bb206b67e262dfb71f344e39cc2d44f4573f72

Contents?: true

Size: 676 Bytes

Versions: 209

Compression:

Stored size: 676 Bytes

Contents

require File.expand_path("../engine", File.dirname(__FILE__))

# Use when regenerating the CA on the system, i.e. a hostname change
namespace :katello do
  desc 'Regenerates the ueber cert for each organization in candlepin, can be passed an organization label.'
  task :regenerate_ueber_certs, [:organization] => :environment do |_t, args|
    user_org = Organization.where(:label => args.organization).first if args.organization
    organizations = user_org.present? ? [user_org] : Organization.all

    organizations.each do |org|
      org.regenerate_ueber_cert
    end
    puts "Regenerated the ueber certificate(s) for #{organizations.map(&:name).join(', ')}"
  end
end

Version data entries

209 entries across 209 versions & 1 rubygems

Version Path
katello-4.4.0.2 lib/katello/tasks/regenerate_ueber_certs.rake
katello-4.4.0.1 lib/katello/tasks/regenerate_ueber_certs.rake
katello-4.3.1 lib/katello/tasks/regenerate_ueber_certs.rake
katello-4.4.0 lib/katello/tasks/regenerate_ueber_certs.rake
katello-4.4.0.rc2 lib/katello/tasks/regenerate_ueber_certs.rake
katello-4.4.0.rc1 lib/katello/tasks/regenerate_ueber_certs.rake
katello-4.2.2 lib/katello/tasks/regenerate_ueber_certs.rake
katello-4.3.0 lib/katello/tasks/regenerate_ueber_certs.rake
katello-4.3.0.rc4 lib/katello/tasks/regenerate_ueber_certs.rake
katello-4.3.0.rc3 lib/katello/tasks/regenerate_ueber_certs.rake
katello-4.3.0.rc2.1 lib/katello/tasks/regenerate_ueber_certs.rake
katello-4.3.0.rc2 lib/katello/tasks/regenerate_ueber_certs.rake
katello-4.3.0.rc1 lib/katello/tasks/regenerate_ueber_certs.rake
katello-4.2.1 lib/katello/tasks/regenerate_ueber_certs.rake
katello-4.2.0.1 lib/katello/tasks/regenerate_ueber_certs.rake
katello-4.1.4 lib/katello/tasks/regenerate_ueber_certs.rake
katello-4.0.3 lib/katello/tasks/regenerate_ueber_certs.rake
katello-4.2.0.1.rc3 lib/katello/tasks/regenerate_ueber_certs.rake
katello-3.18.5 lib/katello/tasks/regenerate_ueber_certs.rake
katello-4.2.0.1.rc2 lib/katello/tasks/regenerate_ueber_certs.rake