mass_driver.drivers.stamper
Imprints (“stamps”) a new file onto a repository
Module Contents
Classes
Creates a new file onto a repository, aka “Stamping |
API
- class mass_driver.drivers.stamper.Stamper[source]
Bases:
mass_driver.models.patchdriver.PatchDriver
Creates a new file onto a repository, aka “Stamping
Any missing folder will be created on the way.
New file’s ownership will be set after succesful write.
- filepath_to_create: str = None
- file_contents: str = None
- file_ownership: str = '0664'
Unix file permissions for the new file
- run(repo: mass_driver.models.repository.ClonedRepo) mass_driver.models.patchdriver.PatchResult [source]
Create the file on given repo, creating folder the way