From 223b4ea515ff8e333b233862e441b9a53a79bc06 Mon Sep 17 00:00:00 2001 From: Tim Smith Date: Mon, 26 Oct 2026 22:22:03 -0700 Subject: [PATCH] Tag SSL example code blocks in README as ruby The two SSL configuration examples used bare code fences, so GitHub rendered them as plain text without Ruby syntax highlighting. Signed-off-by: Tim Smith --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 82482f5a..2b5ace8e 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ The cert path is a folder that contains the cert, key and cacert files. docker-api is expecting the files to be named: cert.pem, key.pem, and ca.pem. If your files are named different, you'll want to set your options explicity: -``` +```ruby Docker.options = { client_cert: File.join(cert_path, 'cert.pem'), client_key: File.join(cert_path, 'key.pem'), @@ -96,7 +96,7 @@ Docker.options = { If you want to load the cert files from a variable, e.g. you want to load them from ENV as needed on Heroku: -``` +```ruby cert_store = OpenSSL::X509::Store.new certificate = OpenSSL::X509::Certificate.new ENV["DOCKER_CA"] cert_store.add_cert certificate