Sha256: f751590fe9b8aa8ee4e302664d0d575ac024f736205b28ed3089a73e5470eece
Contents?: true
Size: 910 Bytes
Versions: 2
Compression:
Stored size: 910 Bytes
Contents
require 'rake_factory' require 'ruby_easy_rsa' require_relative '../mixins/global_parameters' require_relative '../mixins/ssl_parameters' require_relative '../mixins/gitkeep_parameters' module RakeEasyRSA module Tasks class Initialise < RakeFactory::Task include Mixins::GlobalParameters include Mixins::SSLParameters include Mixins::GitkeepParameters 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rake_easy_rsa-0.2.0.pre.10 | lib/rake_easy_rsa/tasks/initialise.rb |
rake_easy_rsa-0.2.0.pre.9 | lib/rake_easy_rsa/tasks/initialise.rb |