deprec 3.1.0.rc10 → 3.1.0.rc11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. data/CHANGELOG +4 -0
  2. data/lib/deprec/callbacks/asset_pipeline.rb +1 -8
  3. data/lib/deprec/callbacks/deploy.rb +3 -1
  4. data/lib/deprec/callbacks/passenger.rb +13 -0
  5. data/lib/deprec/recipes/aoe.rb +1 -1
  6. data/lib/deprec/recipes/apache.rb +1 -1
  7. data/lib/deprec/recipes/bash.rb +1 -1
  8. data/lib/deprec/recipes/canonical.rb +1 -1
  9. data/lib/deprec/recipes/collectd.rb +1 -1
  10. data/lib/deprec/recipes/db.rake +1 -0
  11. data/lib/deprec/recipes/deploy.rb +4 -1
  12. data/lib/deprec/recipes/deprecated.rb +1 -1
  13. data/lib/deprec/recipes/ec2.rb +1 -1
  14. data/lib/deprec/recipes/example.rb +1 -1
  15. data/lib/deprec/recipes/git.rb +1 -1
  16. data/lib/deprec/recipes/haproxy.rb +1 -1
  17. data/lib/deprec/recipes/heartbeat.rb +1 -1
  18. data/lib/deprec/recipes/logrotate.rb +1 -1
  19. data/lib/deprec/recipes/lvm.rb +1 -1
  20. data/lib/deprec/recipes/mongrel.rb +1 -1
  21. data/lib/deprec/recipes/monit.rb +1 -1
  22. data/lib/deprec/recipes/mri.rb +1 -1
  23. data/lib/deprec/recipes/mysql.rb +1 -1
  24. data/lib/deprec/recipes/nagios.rb +1 -1
  25. data/lib/deprec/recipes/nagios3.rb +1 -1
  26. data/lib/deprec/recipes/network.rb +1 -1
  27. data/lib/deprec/recipes/nginx.rb +1 -1
  28. data/lib/deprec/recipes/nrpe.rb +1 -1
  29. data/lib/deprec/recipes/ntp.rb +1 -1
  30. data/lib/deprec/recipes/passenger.rb +1 -1
  31. data/lib/deprec/recipes/php.rb +1 -1
  32. data/lib/deprec/recipes/postfix.rb +1 -1
  33. data/lib/deprec/recipes/postgresql.rb +1 -1
  34. data/lib/deprec/recipes/rack.rb +1 -1
  35. data/lib/deprec/recipes/rails.rb-disabled +1 -1
  36. data/lib/deprec/recipes/ree.rb +1 -1
  37. data/lib/deprec/recipes/rubygems.rb +1 -1
  38. data/lib/deprec/recipes/sqlite.rb +1 -1
  39. data/lib/deprec/recipes/ssh.rb +1 -1
  40. data/lib/deprec/recipes/ssl.rb +1 -1
  41. data/lib/deprec/recipes/stunnel.rb +1 -1
  42. data/lib/deprec/recipes/syslog.rb +1 -1
  43. data/lib/deprec/recipes/syslog_ng.rb +1 -1
  44. data/lib/deprec/recipes/ubuntu.rb +1 -1
  45. data/lib/deprec/recipes/users.rb +1 -1
  46. data/lib/deprec/recipes/utils.rb +1 -1
  47. data/lib/deprec/recipes/xen.rb +1 -1
  48. data/lib/deprec/recipes/xentools.rb +1 -1
  49. data/lib/deprec/version.rb +1 -1
  50. metadata +3 -2
data/CHANGELOG CHANGED
@@ -1,6 +1,10 @@
1
1
  deprec changelog
2
2
  ================
3
3
 
4
+ = 3.1.0.rc11 (Jul 18, 2011)
5
+
6
+ * require 'deprec-core' from each recipe so they can be loaded individually.
7
+
4
8
  = 3.1.0.rc10 (Jul 17, 2011)
5
9
 
6
10
  * Added deprec:mysql:backup
@@ -1,15 +1,8 @@
1
1
  # Copyright 2011 Chris Griego
2
2
  #
3
- # Capistrano::Configuration.instance(:must_exist).load do
4
- # require 'capistrano/recipes/deploy'
3
+ require 'deprec-core'
5
4
  Capistrano::Configuration.instance(:must_exist).load do
6
5
 
7
- def _cset(name, *args, &block)
8
- unless exists?(name)
9
- set(name, *args, &block)
10
- end
11
- end
12
-
13
6
  _cset :asset_env, "RAILS_GROUPS=assets"
14
7
  _cset :rails_env, "production"
15
8
 
@@ -1,5 +1,7 @@
1
- # Copyright 2006-2008 by Mike Bailey. All rights reserved.
1
+ # Copyright 2006-2011 by Mike Bailey. All rights reserved.
2
+ require 'deprec-core'
2
3
  Capistrano::Configuration.instance(:must_exist).load do
4
+ require 'deprec/recipes/deploy'
3
5
  after 'deploy:setup', 'deprec:deploy:chown'
4
6
  after 'deploy:update_code', 'deprec:deploy:symlink_database_yml'
5
7
  after 'deploy:update_code', 'deprec:deploy:symlink_backups'
@@ -0,0 +1,13 @@
1
+ require 'deprec-core'
2
+ Capistrano::Configuration.instance(:must_exist).load do
3
+
4
+ namespace :deploy do
5
+ task :start do ; end
6
+ task :stop do ; end
7
+ task :restart, :roles => :app, :except => { :no_release => true } do
8
+ # no need for sudo?
9
+ run "touch #{File.join(current_path,'tmp','restart.txt')}"
10
+ end
11
+ end
12
+
13
+ end
@@ -1,4 +1,4 @@
1
- # Copyright 2006-2008 by Mike Bailey. All rights reserved.
1
+ require 'deprec-core'
2
2
  Capistrano::Configuration.instance(:must_exist).load do
3
3
 
4
4
  SRC_PACKAGES[:aoe] = {
@@ -1,4 +1,4 @@
1
- # Copyright 2006-2008 by Mike Bailey. All rights reserved.
1
+ require 'deprec-core'
2
2
  Capistrano::Configuration.instance(:must_exist).load do
3
3
  namespace :deprec do
4
4
  namespace :apache do
@@ -1,4 +1,4 @@
1
- # Copyright 2006-2008 by Mike Bailey. All rights reserved.
1
+ require 'deprec-core'
2
2
  Capistrano::Configuration.instance(:must_exist).load do
3
3
  namespace :deprec do
4
4
  namespace :bash do
@@ -1,4 +1,4 @@
1
- # Copyright 2006-2008 by Mike Bailey. All rights reserved.
1
+ require 'deprec-core'
2
2
  # canonical.rb
3
3
  #
4
4
  # Running deprec:web:stop will be the same as running deprec:apache:stop or
@@ -1,4 +1,4 @@
1
- # Copyright 2006-2009 by Mike Bailey. All rights reserved.
1
+ require 'deprec-core'
2
2
  Capistrano::Configuration.instance(:must_exist).load do
3
3
  namespace :deprec do
4
4
  namespace :collectd do
@@ -1,3 +1,4 @@
1
+ require 'deprec-core'
1
2
  require 'find'
2
3
  namespace :deprec do
3
4
 
@@ -1,16 +1,19 @@
1
- # Copyright 2006-2008 by Mike Bailey. All rights reserved.
1
+ require 'deprec-core'
2
2
  Capistrano::Configuration.instance(:must_exist).load do
3
3
  namespace :deprec do
4
4
  namespace :deploy do
5
5
 
6
+ desc "Make deploy_to writable by deploy user"
6
7
  task :chown, :roles => :app do
7
8
  run "#{sudo} chown -R #{user} #{deploy_to}"
8
9
  end
9
10
 
11
+ desc "Symlink database.yml"
10
12
  task :symlink_database_yml, :roles => :app do
11
13
  run "ln -nfs #{shared_path}/system/database.yml #{release_path}/config/database.yml"
12
14
  end
13
15
 
16
+ desc "Symlink shared/system/backups into latest_release"
14
17
  task :symlink_backups, :roles => :app do
15
18
  run "test -d #{shared_path}/system/backups || mkdir #{shared_path}/system/backups"
16
19
  run "ln -nfs #{shared_path}/system/backups #{latest_release}/db/backups"
@@ -1,4 +1,4 @@
1
- # Copyright 2006-2008 by Mike Bailey. All rights reserved.
1
+ require 'deprec-core'
2
2
  Capistrano::Configuration.instance(:must_exist).load do
3
3
 
4
4
  # deprecated tasks from deprec1
@@ -1,4 +1,4 @@
1
- # Copyright 2006-2010 by Mike Bailey. All rights reserved.
1
+ require 'deprec-core'
2
2
  Capistrano::Configuration.instance(:must_exist).load do
3
3
  namespace :deprec do
4
4
  namespace :ec2 do
@@ -1,4 +1,4 @@
1
- # Copyright 2006-2008 by Mike Bailey. All rights reserved.
1
+ require 'deprec-core'
2
2
  Capistrano::Configuration.instance(:must_exist).load do
3
3
  namespace :deprec do
4
4
  namespace :example do
@@ -1,4 +1,4 @@
1
- # Copyright 2006-2008 by Mike Bailey. All rights reserved.
1
+ require 'deprec-core'
2
2
  Capistrano::Configuration.instance(:must_exist).load do
3
3
  namespace :deprec do
4
4
  namespace :git do
@@ -1,4 +1,4 @@
1
- # Copyright 2006-2009 by Mike Bailey. All rights reserved.
1
+ require 'deprec-core'
2
2
  Capistrano::Configuration.instance(:must_exist).load do
3
3
  namespace :deprec do
4
4
  namespace :haproxy do
@@ -1,4 +1,4 @@
1
- # Copyright 2006-2008 by Mike Bailey. All rights reserved.
1
+ require 'deprec-core'
2
2
  Capistrano::Configuration.instance(:must_exist).load do
3
3
  namespace :deprec do
4
4
  namespace :heartbeat do
@@ -1,4 +1,4 @@
1
- # Copyright 2006-2008 by Mike Bailey. All rights reserved.
1
+ require 'deprec-core'
2
2
  Capistrano::Configuration.instance(:must_exist).load do
3
3
  namespace :deprec do
4
4
  namespace :logrotate do
@@ -1,4 +1,4 @@
1
- # Copyright 2006-2008 by Mike Bailey. All rights reserved.
1
+ require 'deprec-core'
2
2
  Capistrano::Configuration.instance(:must_exist).load do
3
3
  namespace :deprec do
4
4
  namespace :lvm do
@@ -1,4 +1,4 @@
1
- # Copyright 2006-2008 by Mike Bailey. All rights reserved.
1
+ require 'deprec-core'
2
2
  Capistrano::Configuration.instance(:must_exist).load do
3
3
 
4
4
  namespace :deprec do
@@ -1,4 +1,4 @@
1
- # Copyright 2006-2008 by Mike Bailey. All rights reserved.
1
+ require 'deprec-core'
2
2
  Capistrano::Configuration.instance(:must_exist).load do
3
3
  namespace :deprec do
4
4
  namespace :monit do
@@ -1,4 +1,4 @@
1
- # Copyright 2006-2008 by Mike Bailey. All rights reserved.
1
+ require 'deprec-core'
2
2
  Capistrano::Configuration.instance(:must_exist).load do
3
3
 
4
4
  namespace :deprec do
@@ -1,4 +1,4 @@
1
- # Copyright 2006-2008 by Mike Bailey. All rights reserved.
1
+ require 'deprec-core'
2
2
  Capistrano::Configuration.instance(:must_exist).load do
3
3
  namespace :deprec do
4
4
  namespace :mysql do
@@ -1,4 +1,4 @@
1
- # Copyright 2006-2008 by Mike Bailey. All rights reserved.
1
+ require 'deprec-core'
2
2
  Capistrano::Configuration.instance(:must_exist).load do
3
3
  namespace :deprec do
4
4
  namespace :nagios do
@@ -1,4 +1,4 @@
1
- # Copyright 2006-2008 by Mike Bailey. All rights reserved.
1
+ require 'deprec-core'
2
2
  require 'socket'
3
3
  Capistrano::Configuration.instance(:must_exist).load do
4
4
  namespace :deprec do
@@ -1,4 +1,4 @@
1
- # Copyright 2006-2008 by Mike Bailey. All rights reserved.
1
+ require 'deprec-core'
2
2
  require 'socket'
3
3
  Capistrano::Configuration.instance(:must_exist).load do
4
4
  namespace :deprec do
@@ -1,4 +1,4 @@
1
- # Copyright 2006-2008 by Mike Bailey. All rights reserved.
1
+ require 'deprec-core'
2
2
  Capistrano::Configuration.instance(:must_exist).load do
3
3
  namespace :deprec do
4
4
  namespace :nginx do
@@ -1,4 +1,4 @@
1
- # Copyright 2006-2011 by Mike Bailey. All rights reserved.
1
+ require 'deprec-core'
2
2
  require 'socket'
3
3
  Capistrano::Configuration.instance(:must_exist).load do
4
4
  namespace :deprec do
@@ -1,4 +1,4 @@
1
- # Copyright 2006-2008 by Mike Bailey. All rights reserved.
1
+ require 'deprec-core'
2
2
  Capistrano::Configuration.instance(:must_exist).load do
3
3
  namespace :deprec do
4
4
  namespace :ntp do
@@ -1,4 +1,4 @@
1
- # Copyright 2006-2008 by Mike Bailey. All rights reserved.
1
+ require 'deprec-core'
2
2
  Capistrano::Configuration.instance(:must_exist).load do
3
3
  namespace :deprec do
4
4
  namespace :passenger do
@@ -1,4 +1,4 @@
1
- # Copyright 2006-2008 by Mike Bailey. All rights reserved.
1
+ require 'deprec-core'
2
2
  Capistrano::Configuration.instance(:must_exist).load do
3
3
  namespace :deprec do
4
4
  namespace :php do
@@ -1,4 +1,4 @@
1
- # Copyright 2006-2008 by Mike Bailey. All rights reserved.
1
+ require 'deprec-core'
2
2
  Capistrano::Configuration.instance(:must_exist).load do
3
3
  # XXX not complete
4
4
  namespace :deprec do
@@ -1,4 +1,4 @@
1
- # Copyright 2006-2008 by Saulius Grigaitis. All rights reserved.
1
+ require 'deprec-core'
2
2
  # Backported from centostrano to deprec by Eric Harris-Braun.
3
3
  Capistrano::Configuration.instance(:must_exist).load do
4
4
  namespace :deprec do
@@ -1,4 +1,4 @@
1
- # Copyright 2006-2011 by Mike Bailey. All rights reserved.
1
+ require 'deprec-core'
2
2
  Capistrano::Configuration.instance(:must_exist).load do
3
3
  namespace :deprec do
4
4
  namespace :rack do
@@ -1,4 +1,4 @@
1
- # Copyright 2006-2008 by Mike Bailey. All rights reserved.
1
+ require 'deprec-core'
2
2
  Capistrano::Configuration.instance(:must_exist).load do
3
3
 
4
4
  set :app_user_prefix, 'app_'
@@ -1,4 +1,4 @@
1
- # Copyright 2006-2008 by Mike Bailey. All rights reserved.
1
+ require 'deprec-core'
2
2
  Capistrano::Configuration.instance(:must_exist).load do
3
3
  namespace :deprec do
4
4
  namespace :ree do
@@ -1,4 +1,4 @@
1
- # Copyright by Mike Bailey. All rights reserved.
1
+ require 'deprec-core'
2
2
  Capistrano::Configuration.instance(:must_exist).load do
3
3
 
4
4
  namespace :deprec do
@@ -1,4 +1,4 @@
1
- # Copyright 2006-2009 by Mike Bailey. All rights reserved.
1
+ require 'deprec-core'
2
2
  Capistrano::Configuration.instance(:must_exist).load do
3
3
  namespace :deprec do
4
4
  namespace :sqlite do
@@ -1,4 +1,4 @@
1
- # Copyright 2006-2008 by Mike Bailey. All rights reserved.
1
+ require 'deprec-core'
2
2
  Capistrano::Configuration.instance(:must_exist).load do
3
3
  namespace :deprec do
4
4
  namespace :ssh do
@@ -1,4 +1,4 @@
1
- # Copyright 2006-2008 by Mike Bailey. All rights reserved.
1
+ require 'deprec-core'
2
2
  Capistrano::Configuration.instance(:must_exist).load do
3
3
  namespace :deprec do
4
4
  namespace :ssl do
@@ -1,4 +1,4 @@
1
- # Copyright 2006-2010 by Mike Bailey. All rights reserved.
1
+ require 'deprec-core'
2
2
  Capistrano::Configuration.instance(:must_exist).load do
3
3
  namespace :deprec do
4
4
  namespace :stunnel do
@@ -1,4 +1,4 @@
1
- # Copyright 2006-2009 by Mike Bailey. All rights reserved.
1
+ require 'deprec-core'
2
2
  Capistrano::Configuration.instance(:must_exist).load do
3
3
  namespace :deprec do
4
4
  namespace :syslog do
@@ -1,4 +1,4 @@
1
- # Copyright 2006-2010 by Mike Bailey. All rights reserved.
1
+ require 'deprec-core'
2
2
  Capistrano::Configuration.instance(:must_exist).load do
3
3
  namespace :deprec do
4
4
  namespace :syslog_ng do
@@ -1,4 +1,4 @@
1
- # Copyright 2006-2008 by Mike Bailey. All rights reserved.
1
+ require 'deprec-core'
2
2
  Capistrano::Configuration.instance(:must_exist).load do
3
3
  namespace :deprec do
4
4
  namespace :ubuntu do
@@ -1,4 +1,4 @@
1
- # Copyright 2006-2008 by Mike Bailey. All rights reserved.
1
+ require 'deprec-core'
2
2
  Capistrano::Configuration.instance(:must_exist).load do
3
3
  namespace :deprec do
4
4
  namespace :users do
@@ -1,4 +1,4 @@
1
- # Copyright 2006-2008 by Mike Bailey. All rights reserved.
1
+ require 'deprec-core'
2
2
  Capistrano::Configuration.instance(:must_exist).load do
3
3
  namespace :deprec do
4
4
  namespace :utils do
@@ -1,4 +1,4 @@
1
- # Copyright 2006-2008 by Mike Bailey. All rights reserved.
1
+ require 'deprec-core'
2
2
  Capistrano::Configuration.instance(:must_exist).load do
3
3
  namespace :deprec do
4
4
  namespace :xen do
@@ -1,4 +1,4 @@
1
- # Copyright 2006-2008 by Mike Bailey. All rights reserved.
1
+ require 'deprec-core'
2
2
  Capistrano::Configuration.instance(:must_exist).load do
3
3
  namespace :deprec do
4
4
  namespace :xentools do
@@ -1,3 +1,3 @@
1
1
  module Deprec
2
- VERSION = "3.1.0.rc10"
2
+ VERSION = "3.1.0.rc11"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: deprec
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease: 6
5
- version: 3.1.0.rc10
5
+ version: 3.1.0.rc11
6
6
  platform: ruby
7
7
  authors:
8
8
  - Mike Bailey
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-07-16 00:00:00 Z
13
+ date: 2011-07-18 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: deprec-core
@@ -230,6 +230,7 @@ files:
230
230
  - lib/deprec/templates/mysql/my.cnf.erb
231
231
  - lib/deprec/templates/mysql/sphinx.conf.prod
232
232
  - lib/deprec/templates/bash/bash_global
233
+ - lib/deprec/callbacks/passenger.rb
233
234
  - lib/deprec/callbacks/deploy.rb
234
235
  - lib/deprec/callbacks/asset_pipeline.rb
235
236
  - lib/deprec.rb