1 Commits

Author SHA1 Message Date
Jason Davis-Cooke
4902299cd4 Return path of secret file 2015-01-27 09:12:55 -05:00
2 changed files with 2 additions and 1 deletions

View File

@@ -151,6 +151,7 @@ module Zanzibar
.hash[:envelope][:body][:download_file_attachment_by_item_id_response][:download_file_attachment_by_item_id_result] .hash[:envelope][:body][:download_file_attachment_by_item_id_response][:download_file_attachment_by_item_id_result]
fail "There was an error getting the #{args[:type]} for secret #{args[:scrt_id]}: #{response[:errors][:string]}" if response[:errors] fail "There was an error getting the #{args[:type]} for secret #{args[:scrt_id]}: #{response[:errors][:string]}" if response[:errors]
write_secret_to_file(path, response) write_secret_to_file(path, response)
return File.join(path, response[:file_name])
rescue Savon::Error => err rescue Savon::Error => err
raise "There was an error getting the #{args[:type]} for secret #{args[:scrt_id]}: #{err}" raise "There was an error getting the #{args[:type]} for secret #{args[:scrt_id]}: #{err}"
end end

View File

@@ -1,3 +1,3 @@
module Zanzibar module Zanzibar
VERSION = '0.1.11' VERSION = '0.1.12'
end end