diff options
Diffstat (limited to 'gitosis/ssh.py')
-rw-r--r-- | gitosis/ssh.py | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/gitosis/ssh.py b/gitosis/ssh.py index 21f351a..7a70ed4 100644 --- a/gitosis/ssh.py +++ b/gitosis/ssh.py @@ -77,28 +77,3 @@ def writeAuthorizedKeys(path, keydir): if in_ is not None: in_.close() os.rename(tmp, path) - -def _getParser(): - import optparse - parser = optparse.OptionParser( - usage="%prog [--authkeys=FILE] KEYDIR") - parser.set_defaults( - authkeys=os.path.expanduser('~/.ssh/authorized_keys'), - ) - parser.add_option( - "--authkeys", - help="path to SSH authorized keys file") - return parser - -def main(): - parser = _getParser() - (options, args) = parser.parse_args() - - if len(args) != 1: - parser.error('Need one argument on the command line.') - - keydir, = args - - writeAuthorizedKeys( - path=options.authkeys, - keydir=keydir) |