class GitLab

Overview

A GitLab provides a simple API for interacting with a GitLab server.

Defined in:

gitlab.cr

Constant Summary

VERSION = "0.1.0"

The version of the module.

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.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.


[View source]

Class Method Detail

def self.git(name : String) #

Makes a new Forejo using values from the git configuration under name.


[View source]

Instance Method Detail

def client #

Gets a client that can be used to make requests.


[View source]
def delete(resource) #

Deletes a resource.


[View source]
def get(resource, form) #

Gets a resource.


[View source]
def home : Path #

The home path used to create the workdir tree manager


[View source]
def patch(resource, params = {} of String => String) #

Modifies a resource.


[View source]
def post(collection, params = {} of String => String) #

Creates a new resource.


[View source]
def put(resource, params = {} of String => String) #

Sets a resource.


[View source]
def token : -> String #

The token proc used to create the client


[View source]
def uri : URI #

The URI used to create the client


[View source]
def user : String #

The username used to identify the user's branch of the workdir tree manager


[View source]