Package backend :: Package mockremote :: Module builder :: Class Builder
[hide private]
[frames] | no frames]

Class Builder

source code


Instance Methods [hide private]
 
__init__(self, opts, hostname, username, job, timeout, chroot, buildroot_pkgs, callback, remote_basedir, remote_tempdir=None, macros=None, repos=None)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
_create_ans_conn(self, username=None) source code
 
run_ansible_with_check(self, cmd, module_name=None, as_root=False, err_codes=None, success_codes=None) source code
 
_run_ansible(self, cmd, module_name=None, as_root=False)
Executes single ansible module
source code
 
_get_remote_pkg_dir(self, pkg) source code
 
modify_mock_chroot_config(self)
Modify mock config for current chroot.
source code
 
collect_built_packages(self, build_details, pkg) source code
 
check_build_success(self, pkg) source code
 
check_if_pkg_local_or_http(self, pkg)
Local file will be sent into the build chroot, if pkg is a url, it will be returned as is.
source code
 
update_job_pkg_version(self, pkg) source code
 
pre_process_repo_url(self, repo_url)
Expands variables and sanitize repo url to be used for mock config
source code
 
gen_mockchain_command(self, dest) source code
 
run_command_and_wait(self, buildcmd) source code
 
build(self, pkg) source code
 
download(self, pkg, destdir) source code
 
check(self) source code

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

Properties [hide private]
  remote_build_dir
  tempdir

Inherited from object: __class__

Method Details [hide private]

__init__(self, opts, hostname, username, job, timeout, chroot, buildroot_pkgs, callback, remote_basedir, remote_tempdir=None, macros=None, repos=None)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

_run_ansible(self, cmd, module_name=None, as_root=False)

source code 

    Executes single ansible module

:param str cmd: module command
:param str module_name: name of the invoked module
:param bool as_root:
:return: ansible command result

modify_mock_chroot_config(self)

source code 

Modify mock config for current chroot.

Packages in buildroot_pkgs are added to minimal buildroot

check_if_pkg_local_or_http(self, pkg)

source code 

Local file will be sent into the build chroot, if pkg is a url, it will be returned as is.

:param str pkg: path to the local file or URL :return str: fixed pkg location


Property Details [hide private]

remote_build_dir

Get Method:
unreachable.remote_build_dir(self)

tempdir

Get Method:
unreachable.tempdir(self)
Set Method:
unreachable.tempdir(self, value)