We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8cf75ec commit de9d07bCopy full SHA for de9d07b
bake/localhost.rb
@@ -10,6 +10,8 @@ def initialize(...)
10
end
11
12
# List all local authorities.
13
+#
14
+# @returns [Array(Hash)] The certificate and key paths, and the expiry date.
15
def list
16
Localhost::Authority.list.map do |authority|
17
{
@@ -20,6 +22,10 @@ def list
20
22
21
23
24
25
+# Fetch a local authority by hostname. If the authority does not exist, it will be created.
26
27
+# @parameter hostname [String] The hostname to fetch.
28
+# @returns [Hash] The certificate and key paths, and the expiry date.
29
def fetch(hostname)
30
if authority = Localhost::Authority.fetch(hostname)
31
return {
0 commit comments