Permalink
Browse files

Make example configuration

  • Loading branch information...
1 parent b650c52 commit 5b725fdb4f0ce9fdc5cbffabcad5da3bef942533 @CloudMarc committed Nov 12, 2011
Showing with 48 additions and 0 deletions.
  1. +18 −0 config_example.ini
  2. +30 −0 makeConfig.py
View
@@ -0,0 +1,18 @@
+[CloudCache]
+token = YOUR_TOKEN_HERE
+host = 174.129.12.177
+port = 4567
+
+[IronWorker]
+defaultprojectid = YOUR_PROJECT_ID
+token = YOUR_TOKEN_HERE
+version = 2
+host = worker-aws-us-east-1.iron.io
+port = 80
+
+[HipChat]
+token = YOUR_TOKEN_HERE
+version = v1
+host = api.hipchat.com
+port = 80
+
View
@@ -0,0 +1,30 @@
+import ConfigParser
+
+#config = ConfigParser.ConfigParser()
+config = {}
+config['IronWorker'] = {"token" : "YOUR_TOKEN_HERE",
+ "host" : "worker-aws-us-east-1.iron.io",
+ "port" : "80",
+ "version" : "2",
+ "defaultProjectId" : "YOUR_PROJECT_ID"}
+
+config['CloudCache'] = {"token" : "YOUR_TOKEN_HERE",
+ "host" : "174.129.12.177",
+ "port" : "4567"}
+
+config['HipChat'] = {"token" : "YOUR_TOKEN_HERE",
+ "host" : "api.hipchat.com",
+ "port" : "80",
+ "version" : "v1"}
+
+cnf = ConfigParser.RawConfigParser()
+for section in config.keys():
+ cnf.add_section(section)
+ kvz = config[section]
+ for k in kvz.keys():
+ cnf.set(section, k, kvz[k])
+
+with open('config_example.ini', 'w') as configfile:
+ cnf.write(configfile)
+
+

0 comments on commit 5b725fd

Please sign in to comment.