diff options
author | Thom May <thom@chef.io> | 2016-01-14 14:08:03 +0000 |
---|---|---|
committer | Thom May <thom@chef.io> | 2016-01-14 14:08:03 +0000 |
commit | 51cfbdc4d16739caac4d946fadbe678444aafe34 (patch) | |
tree | 56dfd8f1cd9fd933de27268b32402e955a43ac2b /lib/chef/knife/key_list.rb | |
parent | 05064423057d4cf46f4713b81b08829cf6d20af6 (diff) | |
download | chef-51cfbdc4d16739caac4d946fadbe678444aafe34.tar.gz |
Use double quotes by default
This is an entirely mechanically generated (chefstyle -a) change, to go
along with chef/chefstyle#5 . We should pick something and use it
consistently, and my opinion is that double quotes are the appropriate
thing.
Diffstat (limited to 'lib/chef/knife/key_list.rb')
-rw-r--r-- | lib/chef/knife/key_list.rb | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/chef/knife/key_list.rb b/lib/chef/knife/key_list.rb index e96a27161f..7a968e85bd 100644 --- a/lib/chef/knife/key_list.rb +++ b/lib/chef/knife/key_list.rb @@ -16,9 +16,9 @@ # limitations under the License. # -require 'chef/key' -require 'chef/json_compat' -require 'chef/exceptions' +require "chef/key" +require "chef/json_compat" +require "chef/exceptions" class Chef class Knife @@ -64,21 +64,21 @@ EOS if @config[:with_details] max_length = 0 keys.each do |key| - key['name'] = key['name'] + ":" - max_length = key['name'].length if key['name'].length > max_length + key["name"] = key["name"] + ":" + max_length = key["name"].length if key["name"].length > max_length end keys.each do |key| - next if !key['expired'] && @config[:only_expired] - next if key['expired'] && @config[:only_non_expired] + next if !key["expired"] && @config[:only_expired] + next if key["expired"] && @config[:only_non_expired] display = "#{colorize(key['name'].ljust(max_length))} #{key['uri']}" display = "#{display} (expired)" if key["expired"] display_info(display) end else keys.each do |key| - next if !key['expired'] && @config[:only_expired] - next if key['expired'] && @config[:only_non_expired] - display_info(key['name']) + next if !key["expired"] && @config[:only_expired] + next if key["expired"] && @config[:only_non_expired] + display_info(key["name"]) end end end |