Sha256: 77127e09bb0ab2baea1627c3d621e702108d5abee038e37cbd079017cf8c36e7
Contents?: true
Size: 1.03 KB
Versions: 5
Compression:
Stored size: 1.03 KB
Contents
require 'rake_factory' require 'ruby_easy_rsa' require_relative '../../mixins/global_parameters' require_relative '../../mixins/ssl_parameters' require_relative '../../mixins/encrypt_key_parameters' require_relative '../../mixins/easy_rsa_ensure_prerequisite' module RakeEasyRSA module Tasks module Certificate class Renew < RakeFactory::Task include Mixins::GlobalParameters include Mixins::SSLParameters include Mixins::EncryptKeyParameters include Mixins::EasyRSAEnsurePrerequisite parameter :default_argument_names, default: [:filename_base] default_name :renew default_description "Renew a certificate of the PKI" def argument_names @argument_names + default_argument_names end action do |t, args| puts "Renewing certificate '#{args.filename_base}'... " RubyEasyRSA.renew( t.parameter_values.merge( filename_base: args.filename_base)) puts "Done." end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems