Package config_common :: Module transactions :: Class DeployTransaction
[hide private]
[frames] | no frames]

Class DeployTransaction

source code

Instance Methods [hide private]
 
__init__(self, transaction_root=None, auto_rollback=0) source code
 
_generate_backup_path(self, path) source code
 
_rename_to_backup(self, path)
renames a file to it's new backup name
source code
 
deploy_callback(self, cb) source code
 
_chown_chmod_chcon(self, temp_file_path, dest_path, file_info, strict_ownership=1) source code
 
_normalize_path_to_root(self, path) source code
 
add_preprocessed(self, dest_path, processed_file_path, file_info, dirs_created, strict_ownership=1)
preprocess the file if needed, and add the entry to the correct list
source code
 
add(self, file_info)
add a file to the deploy transaction
source code
 
rollback(self)
revert the transaction
source code
 
deploy(self)
attempt deployment; will rollback if auto_rollback is set
source code