<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,2 +1 @@
-#require the shadow_puppet gem, but don't load it in the the rails env
-gem 'shadow_puppet', :version =&gt; '~&gt; 0.1.3', :lib =&gt; nil
\ No newline at end of file
+#we don't need to load anything for rails just yet
\ No newline at end of file</diff>
      <filename>init.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,25 +1,38 @@
+require 'yaml'
 Capistrano::Configuration.instance(:must_exist).load do
   namespace :moonshine do
-    desc &lt;&lt;-DESC
-    Bootstrap a barebones Ubuntu system with Git, Ruby, Gems, and Moonshine.
-    DESC
+    desc 'Bootstrap a barebones Ubuntu system with Git, Ruby, RubyGems, and Moonshine.'
     task :bootstrap do
       sudo &quot;apt-get install -q -y git-core&quot;
-      put(File.join(File.dirname(__FILE__), '..', 'bin', 'bootstrap.sh'),&quot;/tmp/bootstrap.sh&quot;)
+      put(File.read(File.join(File.dirname(__FILE__), '..', 'bin', 'bootstrap.sh')),&quot;/tmp/bootstrap.sh&quot;)
       sudo 'chown root:root /tmp/bootstrap.sh'
       sudo 'chmod 700 /tmp/bootstrap.sh'
       sudo '/tmp/bootstrap.sh'
       sudo 'rm /tmp/bootstrap.sh'
-      #TODO add application to moonshine
+    end
+
+    desc 'Initialize and configure Moonshine for this application'
+    task :configure do
+      sudo 'moonshine init'
+      config = {
+        :name =&gt; application,
+        :uri =&gt; repository,
+        :branch =&gt; branch,
+        :manifest_glob =&gt; 'app/manifests/*.rb',
+        :user =&gt; user
+      }
+      put(YAML.dump(config),&quot;/tmp/#{application}_moonshine.conf&quot;)
+      sudo &quot;mv /tmp/#{application}_moonshine.conf /etc/moonshine/#{application}.conf&quot;
+      sudo &quot;chown root:root /etc/moonshine/#{application}.conf&quot;
+      sudo &quot;chmod 700 /etc/moonshine/#{application}.conf&quot;
     end
 
     before 'deploy:setup' do
       bootstrap
+      configure
     end
 
-    desc &lt;&lt;-DESC
-    Apply the Moonshine manifest
-    DESC
+    desc 'Apply the Moonshine manifest'
     task :apply do
       sudo &quot;moonshine #{application}&quot;
     end</diff>
      <filename>recipes/moonshine_cap.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>f56ab7255abfd05d30f20489f7635cd0ffd14056</id>
    </parent>
  </parents>
  <author>
    <name>Jesse Newland</name>
    <email>jnewland@gmail.com</email>
  </author>
  <url>http://github.com/railsmachine/moonshine/commit/6729fcd80a7e851bc68ce0ac1d0e38657a8baf91</url>
  <id>6729fcd80a7e851bc68ce0ac1d0e38657a8baf91</id>
  <committed-date>2009-02-18T08:11:18-08:00</committed-date>
  <authored-date>2009-02-18T08:11:18-08:00</authored-date>
  <message>configuration step</message>
  <tree>5bf094b12d28fdf6b6c6dcb9778f95c3562cdf3a</tree>
  <committer>
    <name>Jesse Newland</name>
    <email>jnewland@gmail.com</email>
  </committer>
</commit>
