lib/shelly/cli/cert.rb in shelly-0.4.9 vs lib/shelly/cli/cert.rb in shelly-0.4.10
- old
+ new
@@ -28,14 +28,14 @@
desc "create CERT_PATH [BUNDLE_PATH] KEY_PATH", "Add certificate to your cloud"
long_desc %{
Add certificate to your cloud.\n
CERT_PATH - path to certificate.\n
- BUNDLE_PATH - optional path to certificate bundle path.\n
- KEY_PATH - path to private key.
+ KEY_PATH - path to private key.\n
+ BUNDLE_PATH - optional path to certificate bundle path.
}
- def create(cert_path, bundle_path = nil, key_path)
+ def create(cert_path, key_path, bundle_path = nil)
app = multiple_clouds(options[:cloud], "cert create CERT_PATH [BUNDLE_PATH] KEY_PATH")
content = ::File.read(cert_path).strip
bundle = bundle_path ? ::File.read(bundle_path).strip : ""
key = ::File.read(key_path).strip
@@ -61,13 +61,13 @@
desc "update CERT_PATH [BUNDLE_PATH] key", "Update current certificate"
long_desc %{
Update current certificate.\n
CERT_PATH - path to certificate.\n
- BUNDLE_PATH - optional path to certificate bundle path.\n
- KEY_PATH - path to private key.
+ KEY_PATH - path to private key.\n
+ BUNDLE_PATH - optional path to certificate bundle path.
}
- def update(cert_path, bundle_path = nil, key_path)
+ def update(cert_path, key_path, bundle_path = nil)
app = multiple_clouds(options[:cloud], "cert update CERT_PATH [BUNDLE_PATH] KEY_PATH")
content = ::File.read(cert_path).strip
bundle = bundle_path ? ::File.read(bundle_path).strip : ""
key = ::File.read(key_path).strip