Package coprs :: Package logic :: Module actions_logic :: Class ActionsLogic
[hide private]
[frames] | no frames]

Class ActionsLogic

source code


Instance Methods [hide private]

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __init__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Class Methods [hide private]
 
get(cls, action_id)
Return single action identified by `action_id`
source code
 
get_many(cls, action_type=None, result=None) source code
 
get_waiting(cls)
Return actions that aren't finished
source code
 
get_by_ids(cls, ids)
Return actions matching passed `ids`
source code
 
update_state_from_dict(cls, action, upd_dict)
Update `action` object with `upd_dict` data
source code
 
send_createrepo(cls, username, coprname, chroots) source code
 
send_delete_build(cls, build)
Schedules build delete action :type build: models.Build
source code
 
send_cancel_build(cls, build)
Schedules build cancel action :type build: models.Build
source code
 
send_update_comps(cls, chroot)
Schedules update comps.xml action
source code
 
send_update_module_md(cls, chroot)
Schedules update module_md.yaml action
source code
 
send_create_gpg_key(cls, copr)
:type copr: models.Copr
source code
 
send_rawhide_to_release(cls, data) source code
 
send_fork_copr(cls, src, dst, builds_map)
:type src: models.Copr :type dst: models.Copr :type builds_map: dict where keys are forked builds IDs and values are IDs from the original builds.
source code
 
send_build_module(cls, user, copr, module)
:type copr: models.Copr :type modulemd: str content of module yaml file
source code
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

update_state_from_dict(cls, action, upd_dict)
Class Method

source code 

Update `action` object with `upd_dict` data

Updates result, message and ended_on parameters.

send_update_comps(cls, chroot)
Class Method

source code 

Schedules update comps.xml action

:type copr_chroot: models.CoprChroot

send_update_module_md(cls, chroot)
Class Method

source code 

Schedules update module_md.yaml action

:type copr_chroot: models.CoprChroot