lib/gooddata/models/process.rb in gooddata-0.6.26 vs lib/gooddata/models/process.rb in gooddata-0.6.27

- old
+ new

@@ -168,10 +168,11 @@ # ----------------------------- Private Stuff private def with_zip(opts = {}) + client = opts[:client] Tempfile.open('deploy-graph-archive') do |temp| zip_filename = temp.path File.open(zip_filename, 'w') do |zip| Zip::File.open(zip.path, Zip::File::CREATE) do |zipfile| yield zipfile @@ -181,9 +182,10 @@ temp.path end end def zip_and_upload(path, files_to_exclude, opts = {}) + client = opts[:client] puts 'Creating package for upload' if !path.directory? && (path.extname == '.grf' || path.extname == '.rb') with_zip(opts) do |zipfile| zipfile.add(File.basename(path), path) end