Class: BintrayDeploy::Repo
- Defined in:
- lib/bintray_deploy/model/repo.rb
Instance Method Summary collapse
- #exists?(repo) ⇒ Boolean
-
#initialize(repo) ⇒ Repo
constructor
A new instance of Repo.
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
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 |