Class: BintrayDeploy::Repo

Inherits:
Base
  • Object
show all
Defined in:
lib/bintray_deploy/model/repo.rb

Instance Method Summary collapse

Constructor Details

#initialize(repo) ⇒ Repo

Returns a new instance of Repo.



4
5
6
# File 'lib/bintray_deploy/model/repo.rb', line 4

def initialize(repo)
	super(repo)
end

Instance Method Details

#exists?(repo) ⇒ Boolean

Returns:

  • (Boolean)


8
9
10
11
12
13
14
15
16
# File 'lib/bintray_deploy/model/repo.rb', line 8

def exists?(repo)
	@bintray["/repos/#{C.user}/#{repo}"].get{ |resp, req, res, &b|
	  if(resp.code !=201)
 return false
	  else 
 return true
	  end
	}
end