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)
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)
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)
def get_source(self, name): source = config.get_section("pysrc", name) if source: return source raise ValueError, 'the source "%s" is not found' % name
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)
def get_source(self, name): source = config.get_section('pysrc', name) if source: return source raise ValueError, 'the source "%s" is not found' % name