bin/dokku in dokku-installer-cli-0.0.4 vs bin/dokku in dokku-installer-cli-0.0.5
- old
+ new
@@ -48,9 +48,29 @@
desc "run <cmd>", "Run a command in the environment of an application"
def walk(*args)
run_command "run #{app_name} #{args.join(' ')}"
end
+ 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)
+ dokku_command = "echo \"#{file_contents}\" | ssh dokku@#{domain} ssl:certificate #{app_name}"
+
+ puts "Running #{dokku_command}..."
+ exec(dokku_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)
+ dokku_command = "echo \"#{file_contents}\" | ssh dokku@#{domain} ssl:key #{app_name}"
+
+ puts "Running #{dokku_command}..."
+ exec(dokku_command)
+ end
+
desc "version", "Print dokku-installer-cli's version"
def version
puts "Dokku Installer CLI #{DokkuInstaller::VERSION}"
end