13 lines
231 B
Python
13 lines
231 B
Python
#!/usr/bin/env python
|
|
|
|
import sys, fastly
|
|
|
|
if len(sys.argv) < 3:
|
|
print "not enough arguments!"
|
|
sys.exit()
|
|
else:
|
|
_, auth_key, svc_key = sys.argv
|
|
|
|
api = fastly.API()
|
|
api.authenticate_by_key(auth_key)
|
|
api.purge_service(svc_key)
|