summaryrefslogtreecommitdiff
path: root/lib/chef/resource/openssl_ec_public_key.rb
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2018-08-15 15:58:52 -0700
committerTim Smith <tsmith@chef.io>2018-08-15 15:58:52 -0700
commit897ee585ab53affaec6dffa5469cd942bc0180d6 (patch)
treeb5af360b56e6adad9aaac9c565d70941794377f9 /lib/chef/resource/openssl_ec_public_key.rb
parent5a7c18201445cf8b5514f00cbeca5edfe0f3d9d8 (diff)
downloadchef-897ee585ab53affaec6dffa5469cd942bc0180d6.tar.gz
Add description fields to the openssl resources
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'lib/chef/resource/openssl_ec_public_key.rb')
-rw-r--r--lib/chef/resource/openssl_ec_public_key.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/resource/openssl_ec_public_key.rb b/lib/chef/resource/openssl_ec_public_key.rb
index 59bb1d4a80..50c3bd192c 100644
--- a/lib/chef/resource/openssl_ec_public_key.rb
+++ b/lib/chef/resource/openssl_ec_public_key.rb
@@ -26,7 +26,7 @@ class Chef
preview_resource true
resource_name :openssl_ec_public_key
- description "Use the openssl_ec_public_key resource to..."
+ description "Use the openssl_ec_public_key resource to generate ec public key files given a private key."
introduced "14.4"
property :path, String,
@@ -53,7 +53,7 @@ class Chef
default: "0640"
action :create do
- description ""
+ description "Generate the ec public key from a private key"
raise ArgumentError, "You cannot specify both 'private_key_path' and 'private_key_content' properties at the same time." if new_resource.private_key_path && new_resource.private_key_content
raise ArgumentError, "You must specify the private key with either 'private_key_path' or 'private_key_content' properties." unless new_resource.private_key_path || new_resource.private_key_content