[icinga-checkins] icinga.org: icinga-web/mhein/testing: * update in contrib

git at icinga.org git at icinga.org
Wed Aug 24 10:41:32 CEST 2011


Module: icinga-web
Branch: mhein/testing
Commit: 17a828b235439ab7a254170b3de99410987478aa
URL:    https://git.icinga.org/?p=icinga-web.git;a=commit;h=17a828b235439ab7a254170b3de99410987478aa

Author: Jannis Moßhammer <jannis.mosshammer at netways.de>
Date:   Wed Aug 24 10:11:29 2011 +0200

* update in contrib

---

 .../bin/moduleMetaPrinterTask.php                  |   35 ++++++++++++++++++++
 etc/contrib/businessprocess-icinga-cronk/build.xml |    7 +++-
 2 files changed, 41 insertions(+), 1 deletions(-)

diff --git a/etc/contrib/businessprocess-icinga-cronk/bin/moduleMetaPrinterTask.php b/etc/contrib/businessprocess-icinga-cronk/bin/moduleMetaPrinterTask.php
new file mode 100644
index 0000000..444c717
--- /dev/null
+++ b/etc/contrib/businessprocess-icinga-cronk/bin/moduleMetaPrinterTask.php
@@ -0,0 +1,35 @@
+<?php
+
+/**
+ * Prints the meta data of a module to screen
+ * @author jmosshammer <jannis.mosshammer at netways.de>
+ *
+ */
+class moduleMetaPrinterTask extends Task {
+	protected $ref;
+	
+	public function setRefid($ref){
+		$this->ref = $ref;
+	}
+	
+	public function getManifest() {
+		return $this->ref->getReferencedObject($this->getProject());
+	}
+	
+	public function init() {
+	}
+	
+	public function main() {
+		$ref = $this->getManifest();
+		echo 
+"\n*************************************************". 
+"\n* Module : \t\t".$ref->getModuleName().
+"\n* Version: \t\t".$ref->getModuleVersion().
+"\n* ".$ref->getModuleDescription().
+"\n*". 
+"\n* Author: \t\t".$ref->getModuleAuthor().
+"\n* Company: \t\t".$ref->getModuleCompany().
+"\n*************************************************\n\n";
+		
+	}
+}
\ No newline at end of file
diff --git a/etc/contrib/businessprocess-icinga-cronk/build.xml b/etc/contrib/businessprocess-icinga-cronk/build.xml
index f2ec578..84e1748 100755
--- a/etc/contrib/businessprocess-icinga-cronk/build.xml
+++ b/etc/contrib/businessprocess-icinga-cronk/build.xml
@@ -39,6 +39,7 @@ Available targets:
 		<echo msg="Checking dependencies..." />
 		<manifestDependencyChecker refid="manifest"/>
 	
+	
 		<!-- Install module and additional -->		
 		<echo>Installing to ${PATH_Icinga}</echo>
         <mkdir dir="${PATH_Icinga}/app/modules/BPAddon" />
@@ -47,5 +48,9 @@ Available targets:
 				<include name="*/**" />
 			</fileset>
 		</copy>	
-    </target>
+		<echo>Clearing cache</echo>
+		<delete dir="${PATH_Icinga}/app/cache/CronkTemplates" />	
+		<delete dir="${PATH_Icinga}/app/cache/config" />	
+		<delete dir="${PATH_Icinga}/app/cache/Squished" />	
+	</target>
 </project>





More information about the icinga-checkins mailing list