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