backend.actions

class backend.actions.Action(opts, action, frontend_client)[source]

Object to send data back to fronted

Parameters:
  • frontent_callback (backend.callback.FrontendCallback) – object to post data back to frontend
  • destdir – filepath with build results
  • action (dict) – dict-like object with action task

Expected action keys:

  • action_type: main field determining what action to apply

# TODO: describe actions

handle_createrepo(result)[source]
get_chroot_result_dir(chroot, projectname, username)[source]
handle_rename(result)[source]
handle_fork(result)[source]
handle_delete_copr_project()[source]
handle_comps_update(result)[source]
handle_delete_build()[source]
handle_generate_gpg_key(result)[source]
handle_rawhide_to_release(result)[source]
run()[source]

Handle action (other then builds) - like rename or delete of project

class backend.actions.ActionType[source]
DELETE = 0
RENAME = 1
LEGAL_FLAG = 2
CREATEREPO = 3
UPDATE_COMPS = 4
GEN_GPG_KEY = 5
RAWHIDE_TO_RELEASE = 6
FORK = 7
class backend.actions.ActionResult[source]
WAITING = 0
SUCCESS = 1
FAILURE = 2