|
|
|
@ -1,2 +1,25 @@ |
|
|
|
#!/usr/bin/python |
|
|
|
import argparse |
|
|
|
|
|
|
|
|
|
|
|
def connection_from_config(name): |
|
|
|
"""Create a connection from a Host entry in the .ssh/config file""" |
|
|
|
pass |
|
|
|
|
|
|
|
|
|
|
|
def scp(connection, src, dst): |
|
|
|
"""Function to copy files from src to dst using connection""" |
|
|
|
pass |
|
|
|
|
|
|
|
|
|
|
|
def exec_remote(connection, command): |
|
|
|
"""Function to execute specified command on conection""" |
|
|
|
pass |
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__": |
|
|
|
parser = argparse.ArgumentParser() |
|
|
|
parser.add_argument('cert_path') |
|
|
|
parser.add_argument('key_path') |
|
|
|
parser.add_argument('-d', '--dry', action='store_true') |
|
|
|
args = parser.parse_args() |