def get_host(self):
        user, server, path = self.location
        if server == 'localhost':
            return local

        if config.options.offline:
            print 'Error: this action is not available in offline mode'
            exit(1)

        server = config.get_section('server', server)
        host = server.options['host']
        shell = bool(int(self.options.get('shell', '0')))
        return get_remote_host(host, user, shell)
Exemple #2
0
    def get_host(self):
        user, server, path = self.location
        if server == "localhost":
            return local

        if config.options.offline:
            print "Error: this action is not available in offline mode"
            exit(1)

        server = config.get_section("server", server)
        host = server.options["host"]
        shell = bool(int(self.options.get("shell", "0")))
        return get_remote_host(host, user, shell)
Exemple #3
0
    def get_host(self):
        user, server, path = self.location
        if server == 'localhost':
            return local

        if config.options.offline:
            print 'Error: this action is not available in offline mode'
            exit(1)

        server = config.get_section('server', server)
        host = server.options['host']
        shell = bool(int(self.options.get('shell', '0')))
        return get_remote_host(host, user, shell)
Exemple #4
0
 def get_url(self):
     mirror = self.options['mirror']
     mirror = config.get_section('mirror', mirror)
     mirror = mirror.options['url']
     return '%s%s.git' % (mirror, self.name)
Exemple #5
0
 def get_url(self):
     mirror = self.options['mirror']
     mirror = config.get_section('mirror', mirror)
     mirror = mirror.options['url']
     return '%s%s.git' % (mirror, self.name)
Exemple #6
0
    def get_source(self, name):
        source = config.get_section("pysrc", name)
        if source:
            return source

        raise ValueError, 'the source "%s" is not found' % name
Exemple #7
0
 def pyenv(self):
     pyenv = self.options["pyenv"]
     return config.get_section("pyenv", pyenv)
 def pyenv(self):
     pyenv = self.options['pyenv']
     return config.get_section('pyenv', pyenv)
Exemple #9
0
    def get_source(self, name):
        source = config.get_section('pysrc', name)
        if source:
            return source

        raise ValueError, 'the source "%s" is not found' % name
Exemple #10
0
 def pyenv(self):
     pyenv = self.options['pyenv']
     return config.get_section('pyenv', pyenv)