Module: Ghee::API::Repos

Included in:
Ghee
Defined in:
lib/ghee/api/keys.rb,
lib/ghee/api/forks.rb,
lib/ghee/api/hooks.rb,
lib/ghee/api/pulls.rb,
lib/ghee/api/repos.rb,
lib/ghee/api/issues.rb,
lib/ghee/api/labels.rb,
lib/ghee/api/search.rb,
lib/ghee/api/commits.rb,
lib/ghee/api/contents.rb,
lib/ghee/api/git_data.rb,
lib/ghee/api/watchers.rb,
lib/ghee/api/milestones.rb,
lib/ghee/api/collaborators.rb,
lib/ghee/api/commit_comments.rb,
lib/ghee/api/commit_statuses.rb

Overview

The Repos module handles all of the Github Repo API endpoints

Defined Under Namespace

Modules: Assignees, Collaborators, Commits, Contents, Forks, Git, Hooks, Issues, Keys, Labels, Milestones, Pulls Classes: Proxy

Instance Method Summary collapse

Instance Method Details

#repos(login, name = nil) ⇒ Object

Get repos

name - String of the name of the repo

Returns json



26
27
28
29
30
31
32
# File 'lib/ghee/api/repos.rb', line 26

def repos(, name = nil)
  repo = name.nil? ?  : "#{}/#{name}"
  path_prefix = "./repos/#{repo}"
  proxy = Proxy.new(connection, path_prefix)
  proxy.repo_name = repo
  proxy
end