Wagon: Deploying site to repository

This commit is contained in:
Vincent Behar 2011-07-07 23:09:49 +02:00
parent 794c1c4af2
commit ed782f19c5
147 changed files with 3180 additions and 1626 deletions

View file

@ -1,5 +1,5 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- Generated by Apache Maven Doxia at Jul 6, 2011 -->
<!-- Generated by Apache Maven Doxia at Jul 7, 2011 -->
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
@ -10,7 +10,7 @@
@import url("./css/site.css");
</style>
<link rel="stylesheet" href="./css/print.css" type="text/css" media="print" />
<meta name="Date-Revision-yyyymmdd" content="20110706" />
<meta name="Date-Revision-yyyymmdd" content="20110707" />
<meta http-equiv="Content-Language" content="en" />
<!-- Google Analytics -->
@ -49,7 +49,7 @@
</div>
<div class="xright">
<span id="publishDate">Last Published: 2011-07-06</span>
<span id="publishDate">Last Published: 2011-07-07</span>
&nbsp;| <span id="projectVersion">Version: 1.0-SNAPSHOT</span>
</div>
<div class="clear">
@ -118,7 +118,7 @@ puts &quot;All RunDeck projects : #{rundeck.projects}&quot;
puts &quot;All RunDeck nodes : #{rundeck.nodes}&quot;
puts &quot;All RunDeck jobs : #{rundeck.jobs}&quot;
puts &quot;All RunDeck running executions : #{rundeck.runningExecutions}&quot;
</pre></div><p>You can also add the librairie to the classpath : save the following script in a file named &quot;<tt>rundeck.rb</tt>&quot;, and execute it with &quot;<tt>jruby -rjava -J-cp /path/to/rundeck-api-java-client-VERSION-jar-with-dependencies.jar rundeck.rb</tt>&quot;.</p><div class="source"><pre>import org.rundeck.api.RundeckClient
</pre></div><p>You can also add the library to the classpath : save the following script in a file named &quot;<tt>rundeck.rb</tt>&quot;, and execute it with &quot;<tt>jruby -rjava -J-cp /path/to/rundeck-api-java-client-VERSION-jar-with-dependencies.jar rundeck.rb</tt>&quot;.</p><div class="source"><pre>import org.rundeck.api.RundeckClient
rundeck = RundeckClient.new(&quot;http://localhost:4440&quot;, &quot;admin&quot;, &quot;admin&quot;)
@ -148,7 +148,7 @@ execution = rundeck.triggerJob(&quot;job-id&quot;, OptionsBuilder.new().addOptio
// last one : you can run a job and wait until its execution is finished :
execution = rundeck.runJob(&quot;job-id&quot;)
puts &quot;Execution finished ! Status : #{execution.status}, duration (in seconds) : #{execution.durationInSeconds}&quot;
puts &quot;Execution finished ! Status : #{execution.status}, duration : #{execution.duration}&quot;
</pre></div><div class="section"><h3>Running an ad-hoc command<a name="Running_an_ad-hoc_command"></a></h3></div><div class="source"><pre>import org.rundeck.api.RundeckClient
import org.rundeck.api.NodeFiltersBuilder
@ -159,6 +159,10 @@ execution = rundeck.triggerAdhocCommand(&quot;my-project&quot;, &quot;uptime&quo
// run the &quot;uptime&quot; command on all unix nodes
execution = rundeck.runAdhocCommand(&quot;my-project&quot;, &quot;uptime&quot;, NodeFiltersBuilder.new().osFamily(&quot;unix&quot;).toProperties())
</pre></div><div class="section"><h3>Exporting jobs<a name="Exporting_jobs"></a></h3></div><div class="source"><pre>import org.rundeck.api.RundeckClient
rundeck = RundeckClient.new(&quot;http://localhost:4440&quot;, &quot;admin&quot;, &quot;admin&quot;)
rundeck.exportJobsToFile(&quot;/tmp/jobs.xml&quot;, &quot;my-project&quot;)
</pre></div><div class="section"><h3>And more...<a name="And_more..."></a></h3></div><p>See the API documentation of the <a href="./apidocs/org/rundeck/api/RundeckClient.html">RundeckClient</a> class for more interactions with your RunDeck instance...</p>
</div>
</div>