Class: Acmaker::DSL::Converter
- Inherits:
-
Object
- Object
- Acmaker::DSL::Converter
- Includes:
- Utils::Helper
- Defined in:
- lib/acmaker/dsl/converter.rb
Class Method Summary collapse
Instance Method Summary collapse
- #convert ⇒ Object
-
#initialize(exported, options) ⇒ Converter
constructor
A new instance of Converter.
Methods included from Utils::Helper
Constructor Details
#initialize(exported, options) ⇒ Converter
Returns a new instance of Converter.
12 13 14 15 |
# File 'lib/acmaker/dsl/converter.rb', line 12 def initialize(exported, ) @exported = exported @options = end |
Class Method Details
.convert(exported, options = {}) ⇒ Object
7 8 9 |
# File 'lib/acmaker/dsl/converter.rb', line 7 def convert(exported, = {}) new(exported, ).convert end |
Instance Method Details
#convert ⇒ Object
17 18 19 20 21 22 23 24 25 26 |
# File 'lib/acmaker/dsl/converter.rb', line 17 def convert certificates = [] @exported.each do |domain_name, certificate| next if !certificate || !matched?(domain_name) certificates << output_certificate(domain_name, certificate) end certificates.join("\n") end |