Skip to content

Commit

Permalink
Provide default URL for bintray
Browse files Browse the repository at this point in the history
  • Loading branch information
BanzaiMan committed Mar 11, 2018
1 parent d3f410c commit d5f384c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions lib/dpl/provider/bintray.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
module DPL
class Provider
class Bintray < Provider
DEFAULT_URL = 'https://api.bintray.com'

def check_auth
@user = option(:user)
@key = option(:key)
@url = option(:url)
@url = option(:url, DEFAULT_URL)
end

def needs_key?
Expand All @@ -29,13 +31,10 @@ def initialize(*args)
super(*args)
@test_mode = false

@file = options[:file]
@file = option(:file)
@passphrase = options[:passphrase]
@dry_run = options[:dry_run]

if @url.nil?
@url = 'https://api.bintray.com'
end
if @dry_run.nil?
@dry_run = false
end
Expand Down

0 comments on commit d5f384c

Please sign in to comment.