Skip to content

Instantly share code, notes, and snippets.

@bcsaller
Created May 2, 2014 17:45
Show Gist options
  • Save bcsaller/68883b82c47bf7bc5830 to your computer and use it in GitHub Desktop.
Save bcsaller/68883b82c47bf7bc5830 to your computer and use it in GitHub Desktop.
#!/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