Created
September 18, 2014 14:01
-
-
Save fabito/27d944dbe71be9b019bc to your computer and use it in GitHub Desktop.
Python script to rotate appengine versions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
import sys, getopt, yaml | |
def main(argv): | |
try: | |
module_name = 'dev' | |
yaml_versions_file = 'document.yaml' | |
stream = file(yaml_file, 'r') | |
versions = yaml.load(stream)[module_name] | |
default_version = versions[0] | |
versions.sort() | |
oldest_version = versions[-1] | |
except getopt.GetoptError: | |
pass | |
if __name__ == "__main__": | |
main(sys.argv[1:]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment