Package copr_cli :: Module subcommands
[hide private]
[frames] | no frames]

Module subcommands

source code

Function actually doing the work of calling the API and handling the output.

Functions [hide private]
 
_get_data(req, user, copr=None)
Wrapper around response from server
source code
 
get_user()
Retrieve the user information from the config file.
source code
 
get_api_url()
Retrieve the user information from the config file.
source code
 
listcoprs(username=None)
List all the copr of a user.
source code
 
create(name, chroots=[], description=None, instructions=None, repos=None, initial_pkgs=None)
Create a new copr.
source code
 
delete(copr)
Delete the entire project.
source code
 
_fetch_status(build_id) source code
 
status(build_id)
Return status of build
source code
 
cancel(build_id)
Cancel specified build_id
source code
 
build(copr, pkgs, memory, timeout, wait=True, result=None, chroots=None)
Build a new package into a given copr.
source code
Variables [hide private]
  __package__ = 'copr_cli'
Function Details [hide private]

_get_data(req, user, copr=None)

source code 

Wrapper around response from server

checks data and raises a CoprCliRequestException with nice error message or CoprCliUnknownResponseException in case of some some error. Otherwise return json object.

build(copr, pkgs, memory, timeout, wait=True, result=None, chroots=None)

source code 

Build a new package into a given copr.

Result is dictionary where is returned "errmsg" in case of error. And "id" and "status" otherwise.