Class: GithubCLI::Content
- Inherits:
-
API
- Object
- API
- GithubCLI::Content
show all
- Defined in:
- lib/github_cli/apis/content.rb
Class Method Summary
collapse
-
.archive(user, repo, params, options) ⇒ Object
-
.create(user, repo, path, params, options) ⇒ Object
-
.get(user, repo, path, params, options) ⇒ Object
-
.readme(user, repo, params, options) ⇒ Object
Methods inherited from API
configure, github_api, output, set_basic_auth
Class Method Details
.archive(user, repo, params, options) ⇒ Object
26
27
28
29
30
|
# File 'lib/github_cli/apis/content.rb', line 26
def archive(user, repo, params, options)
output options do
github_api(options).repos.contents.archive user, repo, params
end
end
|
.create(user, repo, path, params, options) ⇒ Object
14
15
16
17
18
|
# File 'lib/github_cli/apis/content.rb', line 14
def create(user, repo, path, params, options)
output options do
github_api(options).repos.contents.create user, repo, path, params
end
end
|
.get(user, repo, path, params, options) ⇒ Object
8
9
10
11
12
|
# File 'lib/github_cli/apis/content.rb', line 8
def get(user, repo, path, params, options)
output options do
github_api(options).repos.contents.get user, repo, path, params
end
end
|
.readme(user, repo, params, options) ⇒ Object
20
21
22
23
24
|
# File 'lib/github_cli/apis/content.rb', line 20
def readme(user, repo, params, options)
output options do
github_api(options).repos.contents.readme user, repo, params
end
end
|