Class: Acmesmith::PostIssuingHooks::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/acmesmith/post_issuing_hooks/base.rb

Direct Known Subclasses

Acm, Shell

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#certificateObject (readonly)

Returns the value of attribute certificate.



4
5
6
# File 'lib/acmesmith/post_issuing_hooks/base.rb', line 4

def certificate
  @certificate
end

Instance Method Details

#common_nameObject



6
7
8
# File 'lib/acmesmith/post_issuing_hooks/base.rb', line 6

def common_name
  certificate.common_name
end

#executeObject

Raises:

  • (NotImplementedError)


15
16
17
# File 'lib/acmesmith/post_issuing_hooks/base.rb', line 15

def execute
  raise NotImplementedError
end

#run(certificate:) ⇒ Object



10
11
12
13
# File 'lib/acmesmith/post_issuing_hooks/base.rb', line 10

def run(certificate:)
  @certificate = certificate
  execute
end