Exemple #1
0
    def __init__(
        self,
        repositories,
        config,
        notify,
        ssh_command=None,
        run_subprocess=run_checked_subprocess,
    ):
        assign_arguments_to_self()

        self.repositories = [
            dict(name=name, **config["repositories"][name])
            for name in self.repositories
        ]
Exemple #2
0
    def __init__(
        self,
        source,
        repository,
        config,
        excludes=[],
        ssh_command=None,
        run_subprocess=run_checked_subprocess,
    ):
        assign_arguments_to_self()

        repoConf = config["repositories"][self.repository]
        self.url = repoConf["url"]
        self.subprocess_environment = BorgSubprocessEnvironment(
            repoConf["password"], ssh_command)
Exemple #3
0
    def __init__(
        self,
        repository,
        config,
        within=None,
        daily=None,
        weekly=None,
        monthly=None,
        dry_run=False,
        ssh_command=None,
        run_subprocess=run_checked_subprocess,
    ):
        assign_arguments_to_self()

        repoConf = config["repositories"][self.repository]
        self.url = repoConf["url"]
        self.subprocess_environment = BorgSubprocessEnvironment(
            repoConf["password"], ssh_command)
Exemple #4
0
 def __init__(self, water, earth="brown", *, wind, fire="purple"):
     assign_arguments_to_self()
Exemple #5
0
def no_self_function(a, b):
    assign_arguments_to_self()
Exemple #6
0
def assign_argument_function(self, a, b):
    assign_arguments_to_self()
Exemple #7
0
 def __init__(self, password, ssh_command):
     assign_arguments_to_self()
Exemple #8
0
 def __init__(self,
              config_file,
              source,
              destination,
              run_subprocess=run_checked_subprocess):
     assign_arguments_to_self()