Sha256: d1ecb93498d4311e2b492556853101224b28bab80697d421b901f3cec182340a
Contents?: true
Size: 950 Bytes
Versions: 12
Compression:
Stored size: 950 Bytes
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 default_name :renew default_argument_names [:filename_base] default_description "Renew a certificate of the PKI" 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
12 entries across 12 versions & 1 rubygems