From 4902299cd446835d31d5b369fb50884a33a3e23b Mon Sep 17 00:00:00 2001 From: Jason Davis-Cooke Date: Tue, 27 Jan 2015 09:12:55 -0500 Subject: [PATCH] Return path of secret file --- lib/zanzibar.rb | 1 + lib/zanzibar/version.rb | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/zanzibar.rb b/lib/zanzibar.rb index 1b5f2d4..606e2ec 100644 --- a/lib/zanzibar.rb +++ b/lib/zanzibar.rb @@ -151,6 +151,7 @@ module Zanzibar .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] write_secret_to_file(path, response) + return File.join(path, response[:file_name]) rescue Savon::Error => err raise "There was an error getting the #{args[:type]} for secret #{args[:scrt_id]}: #{err}" end diff --git a/lib/zanzibar/version.rb b/lib/zanzibar/version.rb index 94a9c83..c95c430 100644 --- a/lib/zanzibar/version.rb +++ b/lib/zanzibar/version.rb @@ -1,3 +1,3 @@ module Zanzibar - VERSION = '0.1.11' + VERSION = '0.1.12' end