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.14.2 lib/katello/tasks/regenerate_ueber_certs.rake
katello-4.15.0 lib/katello/tasks/regenerate_ueber_certs.rake
katello-4.15.0.rc2 lib/katello/tasks/regenerate_ueber_certs.rake
katello-4.15.0.rc1 lib/katello/tasks/regenerate_ueber_certs.rake
katello-4.14.1 lib/katello/tasks/regenerate_ueber_certs.rake
katello-4.14.0 lib/katello/tasks/regenerate_ueber_certs.rake
katello-4.14.0.rc3 lib/katello/tasks/regenerate_ueber_certs.rake
katello-4.14.0.rc2 lib/katello/tasks/regenerate_ueber_certs.rake
katello-4.14.0.rc1.1 lib/katello/tasks/regenerate_ueber_certs.rake
katello-4.14.0.rc1 lib/katello/tasks/regenerate_ueber_certs.rake
katello-4.13.1 lib/katello/tasks/regenerate_ueber_certs.rake
katello-4.13.0 lib/katello/tasks/regenerate_ueber_certs.rake
katello-4.12.1 lib/katello/tasks/regenerate_ueber_certs.rake
katello-4.13.0.rc1 lib/katello/tasks/regenerate_ueber_certs.rake
katello-4.12.0 lib/katello/tasks/regenerate_ueber_certs.rake
katello-4.12.0.rc3 lib/katello/tasks/regenerate_ueber_certs.rake
katello-4.12.0.rc2 lib/katello/tasks/regenerate_ueber_certs.rake
katello-4.12.0.rc1 lib/katello/tasks/regenerate_ueber_certs.rake
katello-4.11.1 lib/katello/tasks/regenerate_ueber_certs.rake
katello-4.11.0 lib/katello/tasks/regenerate_ueber_certs.rake