File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed
Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 44# Copyright, 2025, by Samuel Williams.
55
66module Localhost
7+ # @namespace
78 module System
9+ # @return [Class] The best system class for the current platform.
810 def self . current
911 case RUBY_PLATFORM
1012 when /darwin/
Original file line number Diff line number Diff line change 55
66module Localhost
77 module System
8+ # Darwin specific system operations.
89 module Darwin
10+ # Install a certificate into the system trust store.
11+ #
12+ # @parameter certificate [String] The path to the certificate file.
913 def self . install ( certificate )
1014 login_keychain = File . expand_path ( "~/Library/Keychains/login.keychain-db" )
1115
Original file line number Diff line number Diff line change 33# Released under the MIT License.
44# Copyright, 2025, by Samuel Williams.
55
6- require "etc"
7-
86module Localhost
97 module System
10- module Darwin
8+ # Linux specific system operations.
9+ module Linux
10+ # Install a certificate into the system trust store.
11+ #
12+ # @parameter certificate [String] The path to the certificate file.
1113 def self . install ( certificate )
1214 filename = File . basename ( certificate )
1315 destination = "/usr/local/share/ca-certificates/localhost-#{ filename } "
You can’t perform that action at this time.
0 commit comments