Esempio n. 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
        ]
Esempio n. 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)
Esempio n. 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)
Esempio n. 4
0
 def __init__(self, water, earth="brown", *, wind, fire="purple"):
     assign_arguments_to_self()
Esempio n. 5
0
def no_self_function(a, b):
    assign_arguments_to_self()
Esempio n. 6
0
def assign_argument_function(self, a, b):
    assign_arguments_to_self()
Esempio n. 7
0
 def __init__(self, password, ssh_command):
     assign_arguments_to_self()
Esempio n. 8
0
 def __init__(self,
              config_file,
              source,
              destination,
              run_subprocess=run_checked_subprocess):
     assign_arguments_to_self()