Class: GithubCLI::Key
- Inherits:
-
API
- Object
- API
- GithubCLI::Key
show all
- Defined in:
- lib/github_cli/apis/key.rb
Class Method Summary
collapse
-
.all(user, repo, params, format) ⇒ Object
-
.create(user, repo, params, format) ⇒ Object
-
.delete(user, repo, id, params, format) ⇒ Object
-
.edit(user, repo, id, params, format) ⇒ Object
-
.get(user, repo, id, params, format) ⇒ Object
Methods inherited from API
configure_api, github_api, output
Class Method Details
.all(user, repo, params, format) ⇒ Object
8
9
10
11
12
|
# File 'lib/github_cli/apis/key.rb', line 8
def all(user, repo, params, format)
output format do
github_api.repos.keys.list user, repo, params
end
end
|
.create(user, repo, params, format) ⇒ Object
20
21
22
23
24
|
# File 'lib/github_cli/apis/key.rb', line 20
def create(user, repo, params, format)
output format do
github_api.repos.keys.create user, repo, params
end
end
|
.delete(user, repo, id, params, format) ⇒ Object
32
33
34
35
36
|
# File 'lib/github_cli/apis/key.rb', line 32
def delete(user, repo, id, params, format)
output format do
github_api.repos.keys.delete user, repo, id, params
end
end
|
.edit(user, repo, id, params, format) ⇒ Object
26
27
28
29
30
|
# File 'lib/github_cli/apis/key.rb', line 26
def edit(user, repo, id, params, format)
output format do
github_api.repos.keys.edit user, repo, id, params
end
end
|
.get(user, repo, id, params, format) ⇒ Object
14
15
16
17
18
|
# File 'lib/github_cli/apis/key.rb', line 14
def get(user, repo, id, params, format)
output format do
github_api.repos.keys.get user, repo, id, params
end
end
|