diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b25c15b --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*~ diff --git a/copy_cert.py b/copy_cert.py index 8d5063a..f03f205 100644 --- a/copy_cert.py +++ b/copy_cert.py @@ -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()