Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

regenerate rdocs

  • Loading branch information...
commit a0ee2360ac8e7f1bc71f7d3d0289c07d14d1a11b 1 parent 78a86bd
@jnewland jnewland authored
View
2  .gitignore
@@ -0,0 +1,2 @@
+pkg/*
+test/*
View
145 classes/Moonshine/Manifest/Rails/Postgresql.html
@@ -0,0 +1,145 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html lang='en'>
+ <head>
+ <title>: Moonshine::Manifest::Rails::Postgresql [Moonshine]</title>
+ <meta content='text/html; charset=UTF-8' http-equiv='Content-Type'>
+ <link href='../../../../rdoc-style.css' media='screen' rel='stylesheet' type='text/css'>
+ <script type='text/javascript'>
+ //<![CDATA[
+ function popupCode(url) {
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+ }
+
+ function toggleCode(id) {
+ var code = document.getElementById(id)
+
+ code.style.display = code.style.display != 'block' ? 'block' : 'none'
+ return true
+ }
+
+ // Make codeblocks hidden by default
+ document.writeln('<' + 'style type="text/css">.method .source pre { display: none }<\/style>')
+ //]]>
+ </script>
+ </head>
+ <body class='page'>
+ <div class='class' id='wrapper'>
+ <div class='header'>
+ <h1 class='name'>
+ <span class='type'>Module</span>
+ Moonshine::Manifest::Rails::Postgresql
+ </h1>
+ <ol class='paths'>
+ <li>
+ <a href="../../../../files/lib/moonshine/manifest/rails/postgresql_rb.html">lib/moonshine/manifest/rails/postgresql.rb</a>
+ (<a href="http://github.com/railsmachine/moonshine/tree/master/lib/moonshine/manifest/rails/postgresql.rb">view online</a>)
+ </li>
+ </ol>
+ </div>
+ <div id='content'>
+ <div id='text'>
+ <div id='description'>
+ <p>
+ To use PostgreSQL, add the following recipes calls to your manifest:
+ </p>
+ <pre>recipe :postgresql_server, :postgresql_gem, :postgresql_user, :postgresql_database</pre>
+ </div>
+ <div id='method-list'>
+ <h2>Methods</h2>
+ <h3>public instance</h3>
+ <ol>
+ <li><a href="#M000017">postgresql_database</a></li>
+ <li><a href="#M000015">postgresql_gem</a></li>
+ <li><a href="#M000014">postgresql_server</a></li>
+ <li><a href="#M000016">postgresql_user</a></li>
+ </ol>
+ </div>
+ <div id='section'>
+ <div id='methods'>
+ <h2>Public instance methods</h2>
+ <div class='public-instance method' id='method-M000017'>
+ <a name='M000017'> </a>
+ <div class='synopsis'>
+ <span class='name'>postgresql_database</span>
+ <span class='arguments'>()</span>
+ </div>
+ <div class='description'>
+ <p>
+ Create the database from the current <tt>database_environment</tt>
+ </p>
+ </div>
+ <div class='source'>
+ <a class='source-toggle' href='#' onclick="toggleCode('M000017-source'); return false">
+ [show source]
+ </a>
+ <pre id='M000017-source'> <span class="ruby-comment cmt"># File lib/moonshine/manifest/rails/postgresql.rb, line 58</span>&#x000A;58: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">postgresql_database</span>&#x000A;59: <span class="ruby-identifier">exec</span> <span class="ruby-value str">&quot;postgresql_database&quot;</span>,&#x000A;60: <span class="ruby-identifier">:command</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-node">&quot;/usr/bin/createdb -O #{database_environment[:username]} #{database_environment[:database]}&quot;</span>,&#x000A;61: <span class="ruby-identifier">:unless</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-node">&quot;/usr/bin/psql -l | grep #{database_environment[:database]}&quot;</span>,&#x000A;62: <span class="ruby-identifier">:user</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'postgres'</span>,&#x000A;63: <span class="ruby-identifier">:require</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">exec</span>(<span class="ruby-value str">'postgresql_user'</span>),&#x000A;64: <span class="ruby-identifier">:before</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">exec</span>(<span class="ruby-value str">'rake tasks'</span>),&#x000A;65: <span class="ruby-identifier">:notify</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">exec</span>(<span class="ruby-value str">'rails_bootstrap'</span>)&#x000A;66: <span class="ruby-keyword kw">end</span></pre>
+ </div>
+ </div>
+ <div class='public-instance method' id='method-M000015'>
+ <a name='M000015'> </a>
+ <div class='synopsis'>
+ <span class='name'>postgresql_gem</span>
+ <span class='arguments'>()</span>
+ </div>
+ <div class='description'>
+ <p>
+ Install the <tt>pg</tt> rubygem and dependencies
+ </p>
+ </div>
+ <div class='source'>
+ <a class='source-toggle' href='#' onclick="toggleCode('M000015-source'); return false">
+ [show source]
+ </a>
+ <pre id='M000015-source'> <span class="ruby-comment cmt"># File lib/moonshine/manifest/rails/postgresql.rb, line 43</span>&#x000A;43: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">postgresql_gem</span>&#x000A;44: <span class="ruby-identifier">gem</span> <span class="ruby-value str">'pg'</span>&#x000A;45: <span class="ruby-identifier">gem</span> <span class="ruby-value str">'postgres'</span>&#x000A;46: <span class="ruby-keyword kw">end</span></pre>
+ </div>
+ </div>
+ <div class='public-instance method' id='method-M000014'>
+ <a name='M000014'> </a>
+ <div class='synopsis'>
+ <span class='name'>postgresql_server</span>
+ <span class='arguments'>()</span>
+ </div>
+ <div class='description'>
+ <p>
+ Installs <tt>postgresql</tt> from apt and enables the <tt>postgresql</tt>
+ service.
+ </p>
+ </div>
+ <div class='source'>
+ <a class='source-toggle' href='#' onclick="toggleCode('M000014-source'); return false">
+ [show source]
+ </a>
+ <pre id='M000014-source'> <span class="ruby-comment cmt"># File lib/moonshine/manifest/rails/postgresql.rb, line 9</span>&#x000A; 9: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">postgresql_server</span>&#x000A;10: <span class="ruby-identifier">package</span> <span class="ruby-value str">'postgresql'</span>, <span class="ruby-identifier">:ensure</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:installed</span>&#x000A;11: <span class="ruby-identifier">package</span> <span class="ruby-value str">'postgresql-client'</span>, <span class="ruby-identifier">:ensure</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:installed</span>&#x000A;12: <span class="ruby-identifier">package</span> <span class="ruby-value str">'postgresql-contrib'</span>, <span class="ruby-identifier">:ensure</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:installed</span>&#x000A;13: <span class="ruby-identifier">package</span> <span class="ruby-value str">'libpq-dev'</span>, <span class="ruby-identifier">:ensure</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:installed</span>&#x000A;14: <span class="ruby-identifier">service</span> <span class="ruby-value str">'postgresql-8.3'</span>,&#x000A;15: <span class="ruby-identifier">:ensure</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:running</span>,&#x000A;16: <span class="ruby-identifier">:hasstatus</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-keyword kw">true</span>,&#x000A;17: <span class="ruby-identifier">:require</span> =<span class="ruby-operator">&gt;</span> [&#x000A;18: <span class="ruby-identifier">package</span>(<span class="ruby-value str">'postgresql'</span>),&#x000A;19: <span class="ruby-identifier">package</span>(<span class="ruby-value str">'postgres'</span>),&#x000A;20: <span class="ruby-identifier">package</span>(<span class="ruby-value str">'pg'</span>)&#x000A;21: ]&#x000A;22: <span class="ruby-comment cmt">#ensure the postgresql key is present on the configuration hash</span>&#x000A;23: <span class="ruby-identifier">configure</span>(<span class="ruby-identifier">:postgresql</span> =<span class="ruby-operator">&gt;</span> {})&#x000A;24: <span class="ruby-identifier">file</span> <span class="ruby-value str">'/etc/postgresql/8.3/main/pg_hba.conf'</span>,&#x000A;25: <span class="ruby-identifier">:ensure</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:present</span>,&#x000A;26: <span class="ruby-identifier">:content</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">template</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-keyword kw">__FILE__</span>), <span class="ruby-value str">'templates'</span>, <span class="ruby-value str">'pg_hba.conf.erb'</span>)),&#x000A;27: <span class="ruby-identifier">:require</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">package</span>(<span class="ruby-value str">'postgresql'</span>),&#x000A;28: <span class="ruby-identifier">:mode</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'600'</span>,&#x000A;29: <span class="ruby-identifier">:owner</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'postgres'</span>,&#x000A;30: <span class="ruby-identifier">:group</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'postgres'</span>,&#x000A;31: <span class="ruby-identifier">:notify</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">service</span>(<span class="ruby-value str">'postgresql-8.3'</span>)&#x000A;32: <span class="ruby-identifier">file</span> <span class="ruby-value str">'/etc/postgresql/8.3/main/postgresql.conf'</span>,&#x000A;33: <span class="ruby-identifier">:ensure</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">:present</span>,&#x000A;34: <span class="ruby-identifier">:content</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">template</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">join</span>(<span class="ruby-constant">File</span>.<span class="ruby-identifier">dirname</span>(<span class="ruby-keyword kw">__FILE__</span>), <span class="ruby-value str">'templates'</span>, <span class="ruby-value str">'postgresql.conf.erb'</span>)),&#x000A;35: <span class="ruby-identifier">:require</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">package</span>(<span class="ruby-value str">'postgresql'</span>),&#x000A;36: <span class="ruby-identifier">:mode</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'600'</span>,&#x000A;37: <span class="ruby-identifier">:owner</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'postgres'</span>,&#x000A;38: <span class="ruby-identifier">:group</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">'postgres'</span>,&#x000A;39: <span class="ruby-identifier">:notify</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">service</span>(<span class="ruby-value str">'postgresql-8.3'</span>)&#x000A;40: <span class="ruby-keyword kw">end</span></pre>
+ </div>
+ </div>
+ <div class='public-instance method' id='method-M000016'>
+ <a name='M000016'> </a>
+ <div class='synopsis'>
+ <span class='name'>postgresql_user</span>
+ <span class='arguments'>()</span>
+ </div>
+ <div class='description'>
+ <p>
+ Grant the database user specified in the current
+ <tt>database_environment</tt> permisson to access the database with the
+ supplied password
+ </p>
+ </div>
+ <div class='source'>
+ <a class='source-toggle' href='#' onclick="toggleCode('M000016-source'); return false">
+ [show source]
+ </a>
+ <pre id='M000016-source'> <span class="ruby-comment cmt"># File lib/moonshine/manifest/rails/postgresql.rb, line 50</span>&#x000A;50: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">postgresql_user</span>&#x000A;51: <span class="ruby-identifier">psql</span> <span class="ruby-node">&quot;CREATE USER #{database_environment[:username]} WITH PASSWORD '#{database_environment[:password]}'&quot;</span>,&#x000A;52: <span class="ruby-identifier">:alias</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-value str">&quot;postgresql_user&quot;</span>,&#x000A;53: <span class="ruby-identifier">:unless</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">psql_query</span>(<span class="ruby-value str">'\\\\du'</span>) <span class="ruby-operator">+</span> <span class="ruby-node">&quot;| grep #{database_environment[:username]}&quot;</span>,&#x000A;54: <span class="ruby-identifier">:require</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">service</span>(<span class="ruby-value str">'postgresql-8.3'</span>)&#x000A;55: <span class="ruby-keyword kw">end</span></pre>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ </div>
+ <div id='footer-push'></div>
+ </div>
+ <div id='footer'>
+ <a href="http://github.com/mislav/hanna/tree/master"><strong>Hanna</strong> RDoc template</a>
+ </div>
+ </body>
+</html>
View
2  created.rid
@@ -1 +1 @@
-Tue, 21 Jul 2009 12:54:46 -0400
+Tue, 21 Jul 2009 13:00:26 -0400
View
2  files/README_rdoc.html
@@ -32,7 +32,7 @@
</div>
<div class='last-update'>
Last Update:
- <span class='datetime'>Tue Jul 21 12:54:43 -0400 2009</span>
+ <span class='datetime'>Tue Jul 21 13:00:25 -0400 2009</span>
</div>
</div>
<div id='content'>
View
2  files/lib/moonshine/manifest/rails/apache_rb.html
@@ -32,7 +32,7 @@ <h1 class='name'>apache.rb</h1>
</div>
<div class='last-update'>
Last Update:
- <span class='datetime'>Tue Jul 21 12:54:43 -0400 2009</span>
+ <span class='datetime'>Tue Jul 21 13:00:25 -0400 2009</span>
</div>
</div>
<div id='content'>
View
2  files/lib/moonshine/manifest/rails/mysql_rb.html
@@ -32,7 +32,7 @@ <h1 class='name'>mysql.rb</h1>
</div>
<div class='last-update'>
Last Update:
- <span class='datetime'>Tue Jul 21 12:54:43 -0400 2009</span>
+ <span class='datetime'>Tue Jul 21 13:00:25 -0400 2009</span>
</div>
</div>
<div id='content'>
View
2  files/lib/moonshine/manifest/rails/os_rb.html
@@ -32,7 +32,7 @@ <h1 class='name'>os.rb</h1>
</div>
<div class='last-update'>
Last Update:
- <span class='datetime'>Tue Jul 21 12:54:43 -0400 2009</span>
+ <span class='datetime'>Tue Jul 21 13:00:25 -0400 2009</span>
</div>
</div>
<div id='content'>
View
2  files/lib/moonshine/manifest/rails/passenger_rb.html
@@ -32,7 +32,7 @@ <h1 class='name'>passenger.rb</h1>
</div>
<div class='last-update'>
Last Update:
- <span class='datetime'>Tue Jul 21 12:54:43 -0400 2009</span>
+ <span class='datetime'>Tue Jul 21 13:00:25 -0400 2009</span>
</div>
</div>
<div id='content'>
View
56 files/lib/moonshine/manifest/rails/postgresql_rb.html
@@ -0,0 +1,56 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
+<html lang='en'>
+ <head>
+ <title>File: postgresql.rb [Moonshine]</title>
+ <meta content='text/html; charset=UTF-8' http-equiv='Content-Type'>
+ <link href='../../../../../rdoc-style.css' media='screen' rel='stylesheet' type='text/css'>
+ <script type='text/javascript'>
+ //<![CDATA[
+ function popupCode(url) {
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+ }
+
+ function toggleCode(id) {
+ var code = document.getElementById(id)
+
+ code.style.display = code.style.display != 'block' ? 'block' : 'none'
+ return true
+ }
+
+ // Make codeblocks hidden by default
+ document.writeln('<' + 'style type="text/css">.method .source pre { display: none }<\/style>')
+ //]]>
+ </script>
+ </head>
+ <body class='page'>
+ <div class='file' id='wrapper'>
+ <div class='header'>
+ <h1 class='name'>postgresql.rb</h1>
+ <div class='paths'>
+ lib/moonshine/manifest/rails/postgresql.rb
+ (<a href="http://github.com/railsmachine/moonshine/tree/master/lib/moonshine/manifest/rails/postgresql.rb">view online</a>)
+ </div>
+ <div class='last-update'>
+ Last Update:
+ <span class='datetime'>Tue Jul 21 13:00:25 -0400 2009</span>
+ </div>
+ </div>
+ <div id='content'>
+ <div id='text'>
+ <div id='description'>
+ <p>
+ To use PostgreSQL, add the following recipes calls to your manifest:
+ </p>
+ <pre>recipe :postgresql_server, :postgresql_gem, :postgresql_user, :postgresql_database</pre>
+ </div>
+ <div id='section'>
+ </div>
+ </div>
+ </div>
+ <div id='footer-push'></div>
+ </div>
+ <div id='footer'>
+ <a href="http://github.com/mislav/hanna/tree/master"><strong>Hanna</strong> RDoc template</a>
+ </div>
+ </body>
+</html>
View
2  files/lib/moonshine/manifest/rails/rails_rb.html
@@ -32,7 +32,7 @@ <h1 class='name'>rails.rb</h1>
</div>
<div class='last-update'>
Last Update:
- <span class='datetime'>Tue Jul 21 12:54:44 -0400 2009</span>
+ <span class='datetime'>Tue Jul 21 13:00:25 -0400 2009</span>
</div>
</div>
<div id='content'>
View
2  files/lib/moonshine/manifest/rails/sqlite3_rb.html
@@ -32,7 +32,7 @@ <h1 class='name'>sqlite3.rb</h1>
</div>
<div class='last-update'>
Last Update:
- <span class='datetime'>Tue Jul 21 12:54:44 -0400 2009</span>
+ <span class='datetime'>Tue Jul 21 13:00:25 -0400 2009</span>
</div>
</div>
<div id='content'>
View
2  files/lib/moonshine/manifest/rails_rb.html
@@ -32,7 +32,7 @@ <h1 class='name'>rails.rb</h1>
</div>
<div class='last-update'>
Last Update:
- <span class='datetime'>Tue Jul 21 12:54:43 -0400 2009</span>
+ <span class='datetime'>Tue Jul 21 13:00:25 -0400 2009</span>
</div>
</div>
<div id='content'>
View
2  files/lib/moonshine/manifest_rb.html
@@ -32,7 +32,7 @@ <h1 class='name'>manifest.rb</h1>
</div>
<div class='last-update'>
Last Update:
- <span class='datetime'>Tue Jul 21 12:54:43 -0400 2009</span>
+ <span class='datetime'>Tue Jul 21 13:00:25 -0400 2009</span>
</div>
</div>
<div id='content'>
View
2  files/lib/moonshine_rb.html
@@ -32,7 +32,7 @@ <h1 class='name'>moonshine.rb</h1>
</div>
<div class='last-update'>
Last Update:
- <span class='datetime'>Tue Jul 21 12:54:43 -0400 2009</span>
+ <span class='datetime'>Tue Jul 21 13:00:25 -0400 2009</span>
</div>
</div>
<div id='content'>
View
2  files/lib/moonshine_setup_manifest_rb.html
@@ -32,7 +32,7 @@ <h1 class='name'>moonshine_setup_manifest.rb</h1>
</div>
<div class='last-update'>
Last Update:
- <span class='datetime'>Tue Jul 21 12:54:44 -0400 2009</span>
+ <span class='datetime'>Tue Jul 21 13:00:25 -0400 2009</span>
</div>
</div>
<div id='content'>
Please sign in to comment.
Something went wrong with that request. Please try again.