Class: RakeEasyRSA::TaskSets::PKI

Inherits:
RakeFactory::TaskSet
  • Object
show all
Includes:
Mixins::AlgorithmParameters, Mixins::EncryptKeyParameters, Mixins::GlobalParameters, Mixins::SSLParameters, RakeFactory::Namespaceable
Defined in:
lib/rake_easy_rsa/task_sets/pki.rb

Overview

rubocop:disable Metrics/ClassLength

Instance Method Summary collapse

Methods included from Mixins::EncryptKeyParameters

included

Methods included from Mixins::AlgorithmParameters

included

Methods included from Mixins::SSLParameters

included

Methods included from Mixins::GlobalParameters

included

Instance Method Details

#define_on(application) ⇒ Object



95
96
97
98
99
100
101
102
103
104
105
106
107
# File 'lib/rake_easy_rsa/task_sets/pki.rb', line 95

def define_on(application)
  around_define(application) do
    self.class.tasks.each do |task_definition|
      namespace = resolve_namespace(task_definition)

      if namespace
        define_in_namespace(namespace, application, task_definition)
      else
        define_at_current_level(application, task_definition)
      end
    end
  end
end