class GitLab
- GitLab
- Reference
- Object
Overview
A GitLab provides a simple API for interacting with a GitLab server.
Defined in:
gitlab.crConstant Summary
-
VERSION =
"0.1.0" -
The version of the module.
Constructors
-
.new(uri : URI = @@uri, token : -> String = @@token, home : Path = @@home, user : String = @@user)
Makes a new Forejo which can fetch request from uri using the result of calling token, and treats home as the root of its project tree.
Class Method Summary
-
.git(name : String)
Makes a new Forejo using values from the git configuration under name.
Instance Method Summary
-
#client
Gets a client that can be used to make requests.
-
#delete(resource)
Deletes a resource.
-
#get(resource, form)
Gets a resource.
-
#home : Path
The home path used to create the workdir tree manager
-
#patch(resource, params = {} of String => String)
Modifies a resource.
-
#post(collection, params = {} of String => String)
Creates a new resource.
-
#put(resource, params = {} of String => String)
Sets a resource.
-
#token : -> String
The token proc used to create the client
-
#uri : URI
The URI used to create the client
-
#user : String
The username used to identify the user's branch of the workdir tree manager
Constructor Detail
Makes a new Forejo which can fetch request from uri using the result of calling token, and treats home as the root of its project tree.
Class Method Detail
Makes a new Forejo using values from the git configuration under name.