diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2019-07-02 11:11:35 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2019-07-02 11:13:54 -0700 |
commit | 77f8739a4741e2370e40ec39345a92a6ea393a1a (patch) | |
tree | bcf3c9a12556ce1fd18a83cd5f68cd24d36a1180 /lib/chef/mixin | |
parent | 90a74a80196725c4198b6042e8485d68c70777ac (diff) | |
download | chef-77f8739a4741e2370e40ec39345a92a6ea393a1a.tar.gz |
fix Layout/AlignArgumentslcg/new-chefstyle
this is using:
Layout/AlignArguments:
Enabled: true
EnforcedStyle: with_fixed_indentation
the default style can use really excessive whitespace. on starting
lines which are already long, it fully indents across to where the
arguments start and then begins the line there.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib/chef/mixin')
-rw-r--r-- | lib/chef/mixin/homebrew_user.rb | 2 | ||||
-rw-r--r-- | lib/chef/mixin/openssl_helper.rb | 10 | ||||
-rw-r--r-- | lib/chef/mixin/windows_architecture_helper.rb | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/lib/chef/mixin/homebrew_user.rb b/lib/chef/mixin/homebrew_user.rb index 7703538ff7..82dbb36f6c 100644 --- a/lib/chef/mixin/homebrew_user.rb +++ b/lib/chef/mixin/homebrew_user.rb @@ -67,7 +67,7 @@ class Chef owner = ::File.stat(brew_path).uid else raise Chef::Exceptions::CannotDetermineHomebrewOwner, - 'Could not find the "brew" executable in /usr/local/bin or anywhere on the path.' + 'Could not find the "brew" executable in /usr/local/bin or anywhere on the path.' end Chef::Log.debug "Found Homebrew owner #{Etc.getpwuid(owner).name}; executing `brew` commands as them" diff --git a/lib/chef/mixin/openssl_helper.rb b/lib/chef/mixin/openssl_helper.rb index 79ab9596e5..2312d606ad 100644 --- a/lib/chef/mixin/openssl_helper.rb +++ b/lib/chef/mixin/openssl_helper.rb @@ -284,7 +284,7 @@ class Chef cert.extensions = extension cert.add_extension ef.create_extension("subjectKeyIdentifier", "hash") cert.add_extension ef.create_extension("authorityKeyIdentifier", - "keyid:always,issuer:always") + "keyid:always,issuer:always") cert.sign(key, ::OpenSSL::Digest::SHA256.new) cert @@ -315,7 +315,7 @@ class Chef crl.add_extension ::OpenSSL::X509::Extension.new("crlNumber", ::OpenSSL::ASN1::Integer(1)) crl.add_extension ef.create_extension("authorityKeyIdentifier", - "keyid:always,issuer:always") + "keyid:always,issuer:always") crl.sign(ca_private_key, ::OpenSSL::Digest::SHA256.new) crl end @@ -361,7 +361,7 @@ class Chef revoked.time = Time.now ext = ::OpenSSL::X509::Extension.new("CRLReason", - ::OpenSSL::ASN1::Enumerated(revoke_info["reason"])) + ::OpenSSL::ASN1::Enumerated(revoke_info["reason"])) revoked.add_extension(ext) crl.add_revoked(revoked) @@ -391,9 +391,9 @@ class Chef ef.issuer_certificate = info["issuer"] crl.extensions = [ ::OpenSSL::X509::Extension.new("crlNumber", - ::OpenSSL::ASN1::Integer(get_next_crl_number(crl)))] + ::OpenSSL::ASN1::Integer(get_next_crl_number(crl)))] crl.add_extension ef.create_extension("authorityKeyIdentifier", - "keyid:always,issuer:always") + "keyid:always,issuer:always") crl.sign(ca_private_key, ::OpenSSL::Digest::SHA256.new) crl end diff --git a/lib/chef/mixin/windows_architecture_helper.rb b/lib/chef/mixin/windows_architecture_helper.rb index 44056900a4..96e1b8d34e 100644 --- a/lib/chef/mixin/windows_architecture_helper.rb +++ b/lib/chef/mixin/windows_architecture_helper.rb @@ -84,7 +84,7 @@ class Chef def assert_valid_windows_architecture!(architecture) if !valid_windows_architecture?(architecture) raise Chef::Exceptions::Win32ArchitectureIncorrect, - "The specified architecture was not valid. It must be one of :i386 or :x86_64" + "The specified architecture was not valid. It must be one of :i386 or :x86_64" end end |