diff options
-rw-r--r-- | README.md | 8 | ||||
-rw-r--r-- | lib/puppet/type/ssh_authorized_key.rb | 2 | ||||
-rw-r--r-- | locales/puppetlabs-sshkeys_core.pot | 9 |
3 files changed, 9 insertions, 10 deletions
@@ -14,7 +14,7 @@ Manage SSH `authorized_keys`, and `ssh_known_hosts` files. ## Usage -To manage an authorized key for a user: +To manage an authorized key for a user, use the following code: ``` ssh_authorized_key { 'nick@magpie.example.com': @@ -25,7 +25,7 @@ ssh_authorized_key { 'nick@magpie.example.com': } ``` -To manage a known hosts file entry: +To manage a known hosts file entry, use the following code: ``` sshkey { 'github.com': @@ -35,7 +35,7 @@ sshkey { 'github.com': } ``` -More details cana be found in the `REFERENCE.md` file. +More details can be found in the `REFERENCE.md` file. ## Reference @@ -45,7 +45,7 @@ This module is documented using Puppet Strings. For a quick primer on how Strings works, please see [this blog post](https://puppet.com/blog/using-puppet-strings-generate-great-documentation-puppet-modules) or the [README.md](https://github.com/puppetlabs/puppet-strings/blob/master/README.md) for Puppet Strings. -To generate documentation locally, run +To generate documentation locally, run the following command: ``` bundle install bundle exec puppet strings generate ./lib/**/*.rb diff --git a/lib/puppet/type/ssh_authorized_key.rb b/lib/puppet/type/ssh_authorized_key.rb index 4eff840..a36c069 100644 --- a/lib/puppet/type/ssh_authorized_key.rb +++ b/lib/puppet/type/ssh_authorized_key.rb @@ -125,7 +125,7 @@ module Puppet unless value == :absent || value =~ %r{^[-a-z0-9A-Z_]+(?:=\".*?\")?$} raise( Puppet::Error, - _("Option %{value} is not valid. A single option must either be of the form 'option' or 'option=\"value\". Multiple options must be provided as an array") % { value: value }, + _("Option %{value} is not valid. A single option must either be of the form 'option' or 'option=\"value\"'. Multiple options must be provided as an array") % { value: value }, ) end end diff --git a/locales/puppetlabs-sshkeys_core.pot b/locales/puppetlabs-sshkeys_core.pot index 90c988b..c6acaa1 100644 --- a/locales/puppetlabs-sshkeys_core.pot +++ b/locales/puppetlabs-sshkeys_core.pot @@ -6,11 +6,10 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: puppetlabs-sshkeys_core 1.0.0-8-g39a613b\n" -"\n" +"Project-Id-Version: puppetlabs-sshkeys_core \n" "Report-Msgid-Bugs-To: docs@puppet.com\n" -"POT-Creation-Date: 2018-08-17 15:12-0700\n" -"PO-Revision-Date: 2018-08-17 15:12-0700\n" +"POT-Creation-Date: 2018-10-31 16:52+0000\n" +"PO-Revision-Date: 2018-10-31 16:52+0000\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" "Language: \n" @@ -24,7 +23,7 @@ msgid "Key must not contain whitespace: %{value}" msgstr "" #: ../lib/puppet/type/ssh_authorized_key.rb:118 -msgid "Option %{value} is not valid. A single option must either be of the form 'option' or 'option=\"value\". Multiple options must be provided as an array" +msgid "Option %{value} is not valid. A single option must either be of the form 'option' or 'option=\"value\"'. Multiple options must be provided as an array" msgstr "" #: ../lib/puppet/type/ssh_authorized_key.rb:136 |