Sha256: 264694ea6754ee24ddefbd0cca70b1b2668a5ecbaa8a35747667e263b85c33ce

Contents?: true

Size: 437 Bytes

Versions: 1

Compression:

Stored size: 437 Bytes

Contents

require 'rake_factory'
require 'ruby_easy_rsa'

module RakeEasyRSA
  module Tasks
    class Initialise < RakeFactory::Task
      default_name :initialise
      default_description "Initialise the PKI working directory"

      parameter :directory

      action do |t|
        puts "Initialising PKI working directory... "
        RubyEasyRSA.init_pki(
            directory: t.directory)
        puts "Done."
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rake_easy_rsa-0.2.0.pre.5 lib/rake_easy_rsa/tasks/initialise.rb