Created
May 2, 2014 17:45
-
-
Save bcsaller/68883b82c47bf7bc5830 to your computer and use it in GitHub Desktop.
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/env python | |
import argparse | |
import pprint | |
from jujuclient import Environment | |
def setup(): | |
parser = argparse.ArgumentParser() | |
parser.add_argument('env') | |
return parser.parse_args() | |
def main(): | |
options = setup() | |
env = Environment.connect(options.env) | |
watcher = env.watch() | |
for change_set in watcher: | |
pprint.pprint(change_set) | |
if __name__ == '__main__': | |
main() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment