Skip to content

Commit

Permalink
[Issue nomad-cli#44] Fixing optional .ipa option for HockeyApp. Now t…
Browse files Browse the repository at this point in the history
…o skip .ipa if present in current directory, one can specify a non-existent file.
  • Loading branch information
mattt authored and mbaltaks committed Jun 2, 2015
1 parent 6ff4c42 commit 3a3ede7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/shenzhen/plugins/hockeyapp.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def initialize(api_token)
end

def upload_build(ipa, options)
options[:ipa] = Faraday::UploadIO.new(ipa, 'application/octet-stream') unless ipa.nil?
options[:ipa] = Faraday::UploadIO.new(ipa, 'application/octet-stream') if ipa and File.exist?(ipa)

if dsym_filename = options.delete(:dsym_filename)
options[:dsym] = Faraday::UploadIO.new(dsym_filename, 'application/octet-stream')
Expand Down

0 comments on commit 3a3ede7

Please sign in to comment.