From fdb953e2e0858aad0cfe7006d2baef6e16dbbf8c Mon Sep 17 00:00:00 2001 From: Raphael Roberts Date: Tue, 9 Apr 2019 12:32:24 -0500 Subject: [PATCH] Added function names that will be needed to copy certificate --- .gitignore | 1 + copy_cert.py | 23 +++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 .gitignore 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()