Class: Gitload::Sources::Bitbucket::Repo
- Defined in:
- lib/gitload/sources/bitbucket.rb
Instance Attribute Summary
Attributes inherited from Repo
#api_data, #clone_urls, #cloned, #fork, #name, #owner, #owner_type, #source
Instance Method Summary collapse
-
#initialize(api_data) ⇒ Repo
constructor
A new instance of Repo.
Methods inherited from Repo
#clone_to, #clone_url, #cloned?, #fork?
Constructor Details
#initialize(api_data) ⇒ Repo
Returns a new instance of Repo.
30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/gitload/sources/bitbucket.rb', line 30 def initialize api_data super :bitbucket, api_data @name = api_data['slug'] @owner = api_data['owner'] @fork = api_data['is_fork'] @clone_urls[:ssh] = "[email protected]:#{@owner}/#{@name}.git" @clone_urls[:http] = "https://[email protected]/#{@owner}/#{@name}.git" end |