From: Jacob Helwig Date: Mon, 25 Jun 2018 16:40:12 +0000 (-0700) Subject: Remove Rubocop Metrics/LineLength violation X-Git-Url: https://gitweb.fluxo.info/?a=commitdiff_plain;h=55f8ad9275066f6a7176d85d0ff6c900731ced01;p=puppet-sshkeys_core.git Remove Rubocop Metrics/LineLength violation --- diff --git a/lib/puppet/type/ssh_authorized_key.rb b/lib/puppet/type/ssh_authorized_key.rb index 84dfce5..6b59078 100644 --- a/lib/puppet/type/ssh_authorized_key.rb +++ b/lib/puppet/type/ssh_authorized_key.rb @@ -113,7 +113,10 @@ module Puppet validate do |value| 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 } + 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 }, + ) end end end