Method: Chef::Knife::DataBagFromFile#use_encryption

Defined in:
lib/chef/knife/data_bag_from_file.rb

#use_encryptionObject



59
60
61
62
63
64
65
# File 'lib/chef/knife/data_bag_from_file.rb', line 59

def use_encryption
  if config[:secret] && config[:secret_file]
    ui.fatal("please specify only one of --secret, --secret-file")
    exit(1)
  end
  config[:secret] || config[:secret_file]
end