class Ant::SSL::Inventory
This provides a full inventory of PKI. It is composed of:
-
Authorities
-
Clients
-
Servers
Attributes
defaults[R]
Public Class Methods
new(defaults, auth, clients, servers)
click to toggle source
# File lib/ant/ssl/inventory.rb, line 19 def initialize(defaults, auth, clients, servers) @defaults = defaults @authorities = SubInventory.new(auth, self) @clients = SubInventory.new(clients, self) @servers = SubInventory.new(servers, self) end
Public Instance Methods
ca(name)
click to toggle source
# File lib/ant/ssl/inventory.rb, line 41 def ca(name) @authorities.ca(name) end
create_certificates!()
click to toggle source
# File lib/ant/ssl/inventory.rb, line 26 def create_certificates! validate_inventories! create_directory! [@authorities, @clients, @servers].each(&:create_certificates!) end
create_directory!()
click to toggle source
# File lib/ant/ssl/inventory.rb, line 37 def create_directory! FileUtils.mkdir_p(@defaults['saving_directory']) end
validate_inventories!()
click to toggle source
TODO: Implement validation of inventories
# File lib/ant/ssl/inventory.rb, line 33 def validate_inventories! true end