Sha256: ece3a57befdcaf8aca19835dc2323b65d37b9bcff91b079c416ba63aa9427a78
Contents?: true
Size: 1016 Bytes
Versions: 17
Compression:
Stored size: 1016 Bytes
Contents
require 'rake_factory' require 'ruby_easy_rsa' require_relative '../mixins/global_parameters' require_relative '../mixins/ssl_parameters' require_relative '../mixins/gitkeep_parameters' require_relative '../mixins/easy_rsa_ensure_prerequisite' module RakeEasyRSA module Tasks class Initialise < RakeFactory::Task include Mixins::GlobalParameters include Mixins::SSLParameters include Mixins::GitkeepParameters include Mixins::EasyRSAEnsurePrerequisite default_name :initialise default_description "Initialise the PKI working directory" action do |t| puts "Initialising PKI working directory... " RubyEasyRSA.init_pki(t.parameter_values) if t.include_gitkeep_files File.open("#{t.pki_directory}/private/.gitkeep", 'w') do |f| f.write('') end File.open("#{t.pki_directory}/reqs/.gitkeep", 'w') do |f| f.write('') end end puts "Done." end end end end
Version data entries
17 entries across 17 versions & 1 rubygems