Sha256: 2a3db5e26bde34ae250e1b765fc4f0b6dea5596447f02e831c75089ff5fa5b3c

Contents?: true

Size: 616 Bytes

Versions: 4

Compression:

Stored size: 616 Bytes

Contents

require 'rake_factory'
require 'ruby_easy_rsa'

require_relative '../../mixins/global_parameters'
require_relative '../../mixins/ssl_parameters'

module RakeEasyRSA
  module Tasks
    module CRL
      class Generate < RakeFactory::Task
        include Mixins::GlobalParameters
        include Mixins::SSLParameters

        default_name :generate
        default_description(
            "Generate the certificate revocation list for the PKI")

        action do |t|
          puts "Generating CRL... "
          RubyEasyRSA.gen_crl(t.parameter_values)
          puts "Done."
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rake_easy_rsa-0.2.0.pre.10 lib/rake_easy_rsa/tasks/crl/generate.rb
rake_easy_rsa-0.2.0.pre.9 lib/rake_easy_rsa/tasks/crl/generate.rb
rake_easy_rsa-0.2.0.pre.8 lib/rake_easy_rsa/tasks/crl/generate.rb
rake_easy_rsa-0.2.0.pre.7 lib/rake_easy_rsa/tasks/crl/generate.rb