Permalink
Browse files

Bot for apache 2.4

  • Loading branch information...
claudioc committed Mar 21, 2012
1 parent 9928ca1 commit 9699a0482363782eb9bfcbd3d508af72ae67c178
Showing with 31 additions and 0 deletions.
  1. +31 −0 bots/Bot_Apache24.py
View
@@ -0,0 +1,31 @@
+#!/usr/bin/python
+# vi:si:et:sw=4:sts=4:ts=4
+# -*- coding: UTF-8 -*-
+# -*- Mode: Python -*-
+
+from Base_Apache import *
+
+class Bot_Apache24(Base_Apache):
+ """Apache, for version 2.4.x"""
+
+ def identify(self):
+ return {
+ 'projectGroup': 'Apache',
+ 'projectName': 'Apache 2.4',
+ 'projectDescription': 'The Apache HTTP server, version 2.4',
+ 'projectWebSite': 'http://httpd.apache.org'
+ }
+
+ def run(self):
+ return self._run('4')
+
+if __name__ == "__main__":
+ bot = Bot_Apache24()
+ if bot.isRunnable():
+ rc = bot.run()
+ if rc is not OK:
+ print "An error occurred while running this bot"
+ else:
+ print bot.getProperties()
+ print bot.getOutput()
+

0 comments on commit 9699a04

Please sign in to comment.