Mercurial > hg > Applications > ie-cloud
changeset 4:939072d0981b default tip
add remove.py
author | taiki |
---|---|
date | Tue, 10 Mar 2015 06:32:12 +0900 |
parents | 6ebce132ee89 |
children | |
files | remove.py |
diffstat | 1 files changed, 15 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/remove.py Tue Mar 10 06:32:12 2015 +0900 @@ -0,0 +1,15 @@ +#!/usr/bin/python + +import portops +import argparse +import os, sys + +if __name__ == "__main__": + + parser = argparse.ArgumentParser(description='Remove port for your project.') + parser.add_argument('projectname', metavar='project name', help='ie-docker project name') + args = parser.parse_args() + + if not portops.remove_port_list(os.getlogin(), args.projectname): + print("[!] Can't remove port for your project.") + sys.exit()