lib/chef/knife/vault_decrypt.rb in chef-vault-2.4.0 vs lib/chef/knife/vault_decrypt.rb in chef-vault-2.5.0

- old
+ new

@@ -1,7 +1,7 @@ # Description: Chef-Vault VaultDecrypt class -# Copyright 2013, Nordstrom, Inc. +# Copyright 2013-15, Nordstrom, Inc. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at @@ -16,11 +16,10 @@ require 'chef/knife/vault_base' class Chef class Knife class VaultDecrypt < Knife - include Chef::Knife::VaultBase banner "knife vault decrypt VAULT ITEM [VALUES] (options)" def run @@ -40,17 +39,17 @@ def print_values(vault, item, values) vault_item = ChefVault::Item.load(vault, item).raw_data if values - included_values = %W( id ) + included_values = %w(id) values.split(",").each do |value| value.strip! # remove white space included_values << value end - output(Hash[vault_item.find_all{|k,v| included_values.include?(k)}]) + output(Hash[vault_item.find_all{|k, _| included_values.include?(k)}]) else output(vault_item) end end end