lib/github_cli/apis/key.rb in github_cli-0.5.9 vs lib/github_cli/apis/key.rb in github_cli-0.6.0
- old
+ new
@@ -3,36 +3,36 @@
module GithubCLI
class Key < API
class << self
- def all(user, repo, params, format)
- output format do
- github_api.repos.keys.list user, repo, params
+ def all(user, repo, params, options)
+ output options do
+ github_api(options).repos.keys.list user, repo, params
end
end
- def get(user, repo, id, params, format)
- output format do
- github_api.repos.keys.get user, repo, id, params
+ def get(user, repo, id, params, options)
+ output options do
+ github_api(options).repos.keys.get user, repo, id, params
end
end
- def create(user, repo, params, format)
- output format do
- github_api.repos.keys.create user, repo, params
+ def create(user, repo, params, options)
+ output options do
+ github_api(options).repos.keys.create user, repo, params
end
end
- def edit(user, repo, id, params, format)
- output format do
- github_api.repos.keys.edit user, repo, id, params
+ def edit(user, repo, id, params, options)
+ output options do
+ github_api(options).repos.keys.edit user, repo, id, params
end
end
- def delete(user, repo, id, params, format)
- output format do
- github_api.repos.keys.delete user, repo, id, params
+ def delete(user, repo, id, params, options)
+ output options do
+ github_api(options).repos.keys.delete user, repo, id, params
end
end
end
end # Key