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