<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>vendor/plugins/aaa_tidbits/recipes/app_backup.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/aaa_tidbits/recipes/app_show.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/aaa_tidbits/recipes/download_log.rb</filename>
    </added>
    <added>
      <filename>vendor/plugins/aaa_tidbits/recipes/tail_log.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,5 @@
 load 'deploy' if respond_to?(:namespace) # cap2 differentiator
 Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
-load 'config/deploy'
\ No newline at end of file
+load 'config/deploy'
+
+</diff>
      <filename>Capfile</filename>
    </modified>
    <modified>
      <diff>@@ -27,6 +27,10 @@ set :scm, :git
 set :deploy_via, :copy
 set :copy_remote_dir, &quot;/home/#{user}/tmp&quot;
 
+after &quot;deploy:update_code&quot;, &quot;app:copy_config_files&quot;
+before &quot;deploy:migrate&quot;,  &quot;app:backup&quot;
+
+
 # source: http://tomcopeland.blogs.com/juniordeveloper/2008/05/mod_rails-and-c.html
 namespace :deploy do
   desc &quot;Restarting mod_rails with restart.txt&quot;
@@ -39,14 +43,13 @@ namespace :deploy do
     task t, :roles =&gt; :app do ; end
   end
   
-  desc &quot;invoke the db migration&quot;
-  task:migrate, :roles =&gt; :app do
-    send(run_method, &quot;cd #{current_path} &amp;&amp; rake db:migrate RAILS_ENV=#{stage} &quot;)     
-  end
+  # desc &quot;invoke the db migration&quot;
+  # task:migrate, :roles =&gt; :app do
+  #   send(run_method, &quot;cd #{current_path} &amp;&amp; rake db:migrate RAILS_ENV=#{stage} &quot;)     
+  # end
   
 end
 
-after &quot;deploy:update_code&quot;, &quot;app:copy_config_files&quot;
 
 
 namespace :app do
@@ -57,52 +60,6 @@ namespace :app do
   end
 end
 
-
-# source : http://justinmaccarthy.org/?p=106
-namespace :app do
-  desc &quot;download the log file from server to local log directory&quot;
-  task :download_log do
-    TIMESTAMP = &quot;%Y%m%d%H%M%S&quot;
-    get &quot;#{deploy_to}/current/log/#{stage}.log&quot;,&quot;log/#{stage}_#{Time.now.strftime(TIMESTAMP)}.log&quot;
-  end
-end
-
-
-# source: http://insider.helicoid.net/articles/show/28/tombm 
-namespace :app do
-  desc 'mimicks the ruby script/console behavior. Usage: cap production app:show -s command=Article.first  '
-  task :show do
-    puts command
-    full_command = &quot;#{deploy_to}/current/script/runner -e #{stage} 'require \&quot;pp\&quot;; pp #{command} ' &quot;
-    puts &quot;full_command is #{full_command}&quot;
-    run full_command
-  end
-end
-
-
-namespace :db do
-  desc 'will create a backup on the server and then will download and will insert the data in local database'
-  task :restore_local do
-    timestamp = Time.now.strftime(&quot;%Y-%m-%d-%H-%M-%S&quot;)
-    send(run_method, &quot;cd #{current_path} &amp;&amp; rake db:backup timestamp=#{timestamp} RAILS_ENV=#{stage} &quot;)         
-    get &quot;#{deploy_to}/shared/db_backups/#{timestamp}.sql.gz&quot;,&quot;tmp/#{timestamp}.sql.gz&quot;
-    system(&quot;rake db:restore file='#{timestamp}.sql.gz'&quot;)             
-  end
-  
-  desc 'will create a backup of the database'
-  task :backup do
-    send(run_method, &quot;cd #{current_path} &amp;&amp; rake db:backup RAILS_ENV=#{stage} &quot;)     
-  end
-end
-
-
-
-desc 'tails log from the server log'
-task :tail_log, :roles =&gt; :app do
-  stream &quot;tail -f #{shared_path}/log/#{stage}.log&quot;
-end
-
-
 namespace :lab do
   desc &quot;Usage: cap production app:show -s command=Article.first &quot;
   task  :run do
@@ -113,11 +70,4 @@ namespace :lab do
     end
     puts remote_data
   end
-end
-
-before &quot;deploy:migrate&quot;,  &quot;app:backup&quot;
-namespace :app do
-  task :backup do
-    send(run_method, &quot;cd #{current_path} &amp;&amp; rake db:backup RAILS_ENV=#{stage} &quot;) 
-  end
-end
+end
\ No newline at end of file</diff>
      <filename>config/deploy.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>b4255a37ec3e91d913e21464ccede89cfacf0e40</id>
    </parent>
  </parents>
  <author>
    <name>nkumar</name>
    <email>neeraj@flexaxis.com</email>
  </author>
  <url>http://github.com/herestomwiththeweather/roll_my_blog/commit/78b7675965d39d02fab6502e9149d1ef8ca423d1</url>
  <id>78b7675965d39d02fab6502e9149d1ef8ca423d1</id>
  <committed-date>2008-12-22T09:18:23-08:00</committed-date>
  <authored-date>2008-12-22T09:18:23-08:00</authored-date>
  <message>adding receipies under plugins</message>
  <tree>f1598d71161b21f7f2d6e4793c9f4b809a8bc7d1</tree>
  <committer>
    <name>nkumar</name>
    <email>neeraj@flexaxis.com</email>
  </committer>
</commit>
