On Friday August 14th. from 9 p.m. to 9:30 p.m., we will upgrade GitLab software and its cloud platform release. Service may not be available during this maintenance window. Please schedule your work accordingly.

Commit 88aa3713 authored by Marcello Golfieri's avatar Marcello Golfieri

added option to upload, by default now it just assesses stuff

parent 2d71f7e9
......@@ -195,6 +195,12 @@ if __name__ == "__main__":
dest="sunet",
help='sunet id (default is local username "{}"'.format(os.environ.get("USER")),
)
parser.add_argument(
"-u",
"--upload",
action="store_true",
help="upload all your data as per detected vars",
)
parser.add_argument(
"-i", "--interactive", action="store_true", help="don't return, go into Ipython"
)
......@@ -202,10 +208,11 @@ if __name__ == "__main__":
migrator = Migrator(sunet=args.sunet)
logger.debug("Detected AFS attributes: {}".format(migrator.src.__dict__))
logger.debug("Detected gDrive attributes: {}".format(migrator.dest.__dict__))
logger.info("Detected AFS attributes: {}".format(migrator.src.__dict__))
logger.info("Detected gDrive attributes: {}".format(migrator.dest.__dict__))
migrator.migrate()
if args.upload:
migrator.migrate()
if args.interactive:
import IPython # import IPython; IPython.embed()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment