Sha256: 8afd3882640d51a0df9f5840e90387595f9ebb642bb5f2baf3ae0a8fae267893
Contents?: true
Size: 721 Bytes
Versions: 2
Compression:
Stored size: 721 Bytes
Contents
module DokkuInstaller class Cli < Thor desc "ssl:certificate <file path>", "Add a signed certificate for SSL (server.crt)" def ssl_certificate(*args) file_path = args.first file_contents = File.read(file_path) command = "echo \"#{file_contents}\" | ssh dokku@#{domain} ssl:certificate #{app_name}" puts "Running #{command}..." exec(command) end desc "ssl:key <file path>", "Add a private key for SSL (server.key)" def ssl_key(*args) file_path = args.first file_contents = File.read(file_path) command = "echo \"#{file_contents}\" | ssh dokku@#{domain} ssl:key #{app_name}" puts "Running #{command}..." exec(command) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dokku-installer-cli-0.0.9.3 | lib/dokku_installer/ssl.rb |
dokku-installer-cli-0.0.9.2 | lib/dokku_installer/ssl.rb |