Sha256: 47a32a0868e455f33f9c3ae6fde544ffd00103a3e2a27c0097437396bb48075a

Contents?: true

Size: 879 Bytes

Versions: 22

Compression:

Stored size: 879 Bytes

Contents

require 'rake_factory'
require 'ruby_easy_rsa'

module RakeEasyRSA
  module Tasks
    class Generate < RakeFactory::Task
      default_name :generate
      default_description "Generate all pre-requisites for managing the PKI"

      parameter :initialise_task_name, default: 'initialise'
      parameter :ca_create_task_name, default: 'ca:create'
      parameter :crl_generate_task_name, default: 'crl:generate'
      parameter :dh_generate_task_name, default: 'dh:generate'

      action do |t, args|
        puts "Generating PKI pre-requisites... "
        t.application[t.initialise_task_name, t.scope].invoke(*args)
        t.application[t.ca_create_task_name, t.scope].invoke(*args)
        t.application[t.crl_generate_task_name, t.scope].invoke(*args)
        t.application[t.dh_generate_task_name, t.scope].invoke(*args)
        puts "Done."
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
rake_easy_rsa-0.12.0.pre.1 lib/rake_easy_rsa/tasks/generate.rb
rake_easy_rsa-0.11.0 lib/rake_easy_rsa/tasks/generate.rb
rake_easy_rsa-0.10.0.pre.6 lib/rake_easy_rsa/tasks/generate.rb
rake_easy_rsa-0.10.0.pre.5 lib/rake_easy_rsa/tasks/generate.rb
rake_easy_rsa-0.10.0.pre.4 lib/rake_easy_rsa/tasks/generate.rb
rake_easy_rsa-0.10.0.pre.3 lib/rake_easy_rsa/tasks/generate.rb
rake_easy_rsa-0.10.0.pre.2 lib/rake_easy_rsa/tasks/generate.rb
rake_easy_rsa-0.10.0.pre.1 lib/rake_easy_rsa/tasks/generate.rb
rake_easy_rsa-0.9.0 lib/rake_easy_rsa/tasks/generate.rb
rake_easy_rsa-0.8.0.pre.1 lib/rake_easy_rsa/tasks/generate.rb
rake_easy_rsa-0.7.0 lib/rake_easy_rsa/tasks/generate.rb
rake_easy_rsa-0.6.0.pre.2 lib/rake_easy_rsa/tasks/generate.rb
rake_easy_rsa-0.6.0.pre.1 lib/rake_easy_rsa/tasks/generate.rb
rake_easy_rsa-0.5.0 lib/rake_easy_rsa/tasks/generate.rb
rake_easy_rsa-0.4.0.pre.1 lib/rake_easy_rsa/tasks/generate.rb
rake_easy_rsa-0.3.0 lib/rake_easy_rsa/tasks/generate.rb
rake_easy_rsa-0.2.0.pre.11 lib/rake_easy_rsa/tasks/generate.rb
rake_easy_rsa-0.2.0.pre.10 lib/rake_easy_rsa/tasks/generate.rb
rake_easy_rsa-0.2.0.pre.9 lib/rake_easy_rsa/tasks/generate.rb
rake_easy_rsa-0.2.0.pre.8 lib/rake_easy_rsa/tasks/generate.rb