deprec 3.1.0.rc3 → 3.1.0.rc4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (166) hide show
  1. data/CHANGELOG +32 -1
  2. data/{lib/deprec/cap.rb → docs/old_cap_require_list.rb} +0 -6
  3. data/lib/deprec.rb +2 -2
  4. data/lib/deprec/{cap/callbacks → callbacks}/asset_pipeline.rb +0 -0
  5. data/lib/deprec/callbacks/deploy.rb +3 -0
  6. data/lib/deprec/{cap/recipes → recipes}/aoe.rb +0 -0
  7. data/lib/deprec/{cap/recipes → recipes}/apache.rb +0 -0
  8. data/lib/deprec/{cap/recipes → recipes}/bash.rb +0 -0
  9. data/lib/deprec/{cap/recipes → recipes}/canonical.rb +0 -0
  10. data/lib/deprec/{cap/recipes → recipes}/collectd.rb +0 -0
  11. data/lib/deprec/{rake → recipes}/db.rake +0 -0
  12. data/lib/deprec/recipes/deploy.rb +21 -0
  13. data/lib/deprec/{cap/recipes → recipes}/deprecated.rb +0 -0
  14. data/lib/deprec/{cap/recipes → recipes}/ec2.rb +0 -0
  15. data/lib/deprec/{cap/recipes → recipes}/example.rb +0 -0
  16. data/lib/deprec/{cap/recipes → recipes}/git.rb +0 -0
  17. data/lib/deprec/{cap/recipes → recipes}/haproxy.rb +0 -0
  18. data/lib/deprec/{cap/recipes → recipes}/heartbeat.rb +0 -0
  19. data/lib/deprec/{cap/recipes → recipes}/logrotate.rb +0 -0
  20. data/lib/deprec/{cap/recipes → recipes}/lvm.rb +0 -0
  21. data/lib/deprec/{cap/recipes → recipes}/mongrel.rb +0 -0
  22. data/lib/deprec/{cap/recipes → recipes}/monit.rb +0 -0
  23. data/lib/deprec/{cap/recipes → recipes}/mri.rb +0 -0
  24. data/lib/deprec/{cap/recipes → recipes}/mysql.rb +0 -0
  25. data/lib/deprec/{cap/recipes → recipes}/nagios.rb +0 -0
  26. data/lib/deprec/{cap/recipes → recipes}/nagios3.rb +0 -0
  27. data/lib/deprec/{cap/recipes → recipes}/network.rb +0 -0
  28. data/lib/deprec/{cap/recipes → recipes}/nginx.rb +0 -0
  29. data/lib/deprec/{cap/recipes → recipes}/nrpe.rb +0 -0
  30. data/lib/deprec/{cap/recipes → recipes}/ntp.rb +0 -0
  31. data/lib/deprec/{cap/recipes → recipes}/passenger.rb +0 -0
  32. data/lib/deprec/{cap/recipes → recipes}/php.rb +0 -0
  33. data/lib/deprec/{cap/recipes → recipes}/postfix.rb +0 -0
  34. data/lib/deprec/{cap/recipes → recipes}/postgresql.rb +0 -0
  35. data/lib/deprec/{cap/recipes → recipes}/rack.rb +0 -0
  36. data/lib/deprec/{cap/recipes → recipes}/rails.rb +0 -0
  37. data/lib/deprec/{cap/recipes → recipes}/ree.rb +0 -0
  38. data/lib/deprec/{cap/recipes → recipes}/rubygems.rb +0 -0
  39. data/lib/deprec/{cap/recipes → recipes}/sqlite.rb +0 -0
  40. data/lib/deprec/{cap/recipes → recipes}/ssh.rb +0 -0
  41. data/lib/deprec/{cap/recipes → recipes}/ssl.rb +0 -0
  42. data/lib/deprec/{cap/recipes → recipes}/stunnel.rb +0 -0
  43. data/lib/deprec/{cap/recipes → recipes}/syslog.rb +0 -0
  44. data/lib/deprec/{cap/recipes → recipes}/syslog_ng.rb +0 -0
  45. data/lib/deprec/{cap/recipes → recipes}/ubuntu.rb +0 -0
  46. data/lib/deprec/{cap/recipes → recipes}/users.rb +0 -0
  47. data/lib/deprec/{cap/recipes → recipes}/utils.rb +0 -0
  48. data/lib/deprec/{cap/recipes → recipes}/xen.rb +0 -0
  49. data/lib/deprec/{cap/recipes → recipes}/xentools.rb +0 -0
  50. data/lib/deprec/{cap/templates → templates}/aoe/aoe-init +0 -0
  51. data/lib/deprec/{cap/templates → templates}/aoe/fence_aoemask +0 -0
  52. data/lib/deprec/{cap/templates → templates}/apache/CHANGES.txt +0 -0
  53. data/lib/deprec/{cap/templates → templates}/apache/apache2.conf.erb +0 -0
  54. data/lib/deprec/{cap/templates → templates}/apache/default.erb +0 -0
  55. data/lib/deprec/{cap/templates → templates}/apache/namevirtualhosts.conf +0 -0
  56. data/lib/deprec/{cap/templates → templates}/apache/ports.conf.erb +0 -0
  57. data/lib/deprec/{cap/templates → templates}/apache/status.conf.erb +0 -0
  58. data/lib/deprec/{cap/templates → templates}/apache/vhost.erb +0 -0
  59. data/lib/deprec/{cap/templates → templates}/bash/bash_global +0 -0
  60. data/lib/deprec/{cap/templates → templates}/collectd/collectd-init.d +0 -0
  61. data/lib/deprec/{cap/templates → templates}/collectd/collectd.conf.erb +0 -0
  62. data/lib/deprec/{cap/templates → templates}/deprec/caprc.erb +0 -0
  63. data/lib/deprec/{cap/templates → templates}/haproxy/haproxy-init.d +0 -0
  64. data/lib/deprec/{cap/templates → templates}/haproxy/haproxy.cfg.erb +0 -0
  65. data/lib/deprec/{cap/templates → templates}/heartbeat/authkeys.erb +0 -0
  66. data/lib/deprec/{cap/templates → templates}/heartbeat/ha.cf.erb +0 -0
  67. data/lib/deprec/{cap/templates → templates}/heartbeat/haresources.erb +0 -0
  68. data/lib/deprec/{cap/templates → templates}/logrotate/logrotate.conf.erb +0 -0
  69. data/lib/deprec/{cap/templates → templates}/mongrel/apache_vhost.conf.erb +0 -0
  70. data/lib/deprec/{cap/templates → templates}/mongrel/logrotate.conf.erb +0 -0
  71. data/lib/deprec/{cap/templates → templates}/mongrel/mongrel_cluster-init-script +0 -0
  72. data/lib/deprec/{cap/templates → templates}/mongrel/mongrel_cluster.yml.erb +0 -0
  73. data/lib/deprec/{cap/templates → templates}/mongrel/monit.conf.erb +0 -0
  74. data/lib/deprec/{cap/templates → templates}/mongrel/nginx_vhost.conf.erb +0 -0
  75. data/lib/deprec/{cap/templates → templates}/monit/monit-init-script +0 -0
  76. data/lib/deprec/{cap/templates → templates}/monit/monitrc.erb +0 -0
  77. data/lib/deprec/{cap/templates → templates}/monit/nothing.monitrc +0 -0
  78. data/lib/deprec/{cap/templates → templates}/mysql/create_databases.sql +0 -0
  79. data/lib/deprec/{cap/templates → templates}/mysql/database.yml.prod +0 -0
  80. data/lib/deprec/{cap/templates → templates}/mysql/database.yml.stage +0 -0
  81. data/lib/deprec/{cap/templates → templates}/mysql/my.cnf.erb +0 -0
  82. data/lib/deprec/{cap/templates → templates}/mysql/sphinx.conf.prod +0 -0
  83. data/lib/deprec/{cap/templates → templates}/mysql/sphinx.conf.stage +0 -0
  84. data/lib/deprec/{cap/templates → templates}/nagios.old/README +0 -0
  85. data/lib/deprec/{cap/templates → templates}/nagios.old/apache_vhost.erb +0 -0
  86. data/lib/deprec/{cap/templates → templates}/nagios.old/cgi.cfg.erb +0 -0
  87. data/lib/deprec/{cap/templates → templates}/nagios.old/check_linux_free_memory.pl +0 -0
  88. data/lib/deprec/{cap/templates → templates}/nagios.old/check_mongrel_cluster.rb +0 -0
  89. data/lib/deprec/{cap/templates → templates}/nagios.old/htpasswd.users +0 -0
  90. data/lib/deprec/{cap/templates → templates}/nagios.old/mrtg.cfg +0 -0
  91. data/lib/deprec/{cap/templates → templates}/nagios.old/nagios.cfg.erb +0 -0
  92. data/lib/deprec/{cap/templates → templates}/nagios.old/nrpe.cfg.erb +0 -0
  93. data/lib/deprec/{cap/templates → templates}/nagios.old/nrpe.xinetd.erb +0 -0
  94. data/lib/deprec/{cap/templates → templates}/nagios.old/objects/commands.cfg.erb +0 -0
  95. data/lib/deprec/{cap/templates → templates}/nagios.old/objects/contacts.cfg.erb +0 -0
  96. data/lib/deprec/{cap/templates → templates}/nagios.old/objects/hosts.cfg.erb +0 -0
  97. data/lib/deprec/{cap/templates → templates}/nagios.old/objects/localhost.cfg.erb +0 -0
  98. data/lib/deprec/{cap/templates → templates}/nagios.old/objects/services.cfg.erb +0 -0
  99. data/lib/deprec/{cap/templates → templates}/nagios.old/objects/timeperiods.cfg.erb +0 -0
  100. data/lib/deprec/{cap/templates → templates}/nagios.old/resource.cfg.erb +0 -0
  101. data/lib/deprec/{cap/templates → templates}/nagios/apache2.conf +0 -0
  102. data/lib/deprec/{cap/templates → templates}/nagios/cgi.cfg +0 -0
  103. data/lib/deprec/{cap/templates → templates}/nagios/check_linux_free_memory.pl +0 -0
  104. data/lib/deprec/{cap/templates → templates}/nagios/commands.cfg +0 -0
  105. data/lib/deprec/{cap/templates → templates}/nagios/conf.d/contacts_nagios2.cfg +0 -0
  106. data/lib/deprec/{cap/templates → templates}/nagios/conf.d/extinfo_nagios2.cfg +0 -0
  107. data/lib/deprec/{cap/templates → templates}/nagios/conf.d/generic-host_nagios2.cfg +0 -0
  108. data/lib/deprec/{cap/templates → templates}/nagios/conf.d/generic-service_nagios2.cfg +0 -0
  109. data/lib/deprec/{cap/templates → templates}/nagios/conf.d/hostgroups_nagios2.cfg +0 -0
  110. data/lib/deprec/{cap/templates → templates}/nagios/conf.d/hosts/localhost_nagios2.cfg +0 -0
  111. data/lib/deprec/{cap/templates → templates}/nagios/conf.d/services_nagios2.cfg +0 -0
  112. data/lib/deprec/{cap/templates → templates}/nagios/conf.d/timeperiods_nagios2.cfg +0 -0
  113. data/lib/deprec/{cap/templates → templates}/nagios/host_template.erb +0 -0
  114. data/lib/deprec/{cap/templates → templates}/nagios/htpasswd.users +0 -0
  115. data/lib/deprec/{cap/templates → templates}/nagios/nagios.cfg +0 -0
  116. data/lib/deprec/{cap/templates → templates}/nagios/nrpe.cfg +0 -0
  117. data/lib/deprec/{cap/templates → templates}/nagios/resource.cfg +0 -0
  118. data/lib/deprec/{cap/templates → templates}/network/hostname.erb +0 -0
  119. data/lib/deprec/{cap/templates → templates}/network/hosts.erb +0 -0
  120. data/lib/deprec/{cap/templates → templates}/network/interfaces.erb +0 -0
  121. data/lib/deprec/{cap/templates → templates}/network/resolv.conf.erb +0 -0
  122. data/lib/deprec/{cap/templates → templates}/nginx/logrotate.conf.erb +0 -0
  123. data/lib/deprec/{cap/templates → templates}/nginx/mime.types.erb +0 -0
  124. data/lib/deprec/{cap/templates → templates}/nginx/nginx-init-script +0 -0
  125. data/lib/deprec/{cap/templates → templates}/nginx/nginx.conf.erb +0 -0
  126. data/lib/deprec/{cap/templates → templates}/nginx/nginx.logrotate.d +0 -0
  127. data/lib/deprec/{cap/templates → templates}/nginx/nothing.conf +0 -0
  128. data/lib/deprec/{cap/templates → templates}/nginx/rails_nginx_vhost.conf.erb +0 -0
  129. data/lib/deprec/{cap/templates → templates}/ntp/ntp.conf.erb +0 -0
  130. data/lib/deprec/{cap/templates → templates}/passenger/apache_vhost.erb +0 -0
  131. data/lib/deprec/{cap/templates → templates}/passenger/logrotate.conf.erb +0 -0
  132. data/lib/deprec/{cap/templates → templates}/passenger/passenger.conf.erb +0 -0
  133. data/lib/deprec/{cap/templates → templates}/passenger/passenger.load.erb +0 -0
  134. data/lib/deprec/{cap/templates → templates}/postfix/aliases.erb +0 -0
  135. data/lib/deprec/{cap/templates → templates}/postfix/dynamicmaps.cf.erb +0 -0
  136. data/lib/deprec/{cap/templates → templates}/postfix/main.cf.erb +0 -0
  137. data/lib/deprec/{cap/templates → templates}/postfix/master.cf.erb +0 -0
  138. data/lib/deprec/{cap/templates → templates}/ssh/ssh_config.erb +0 -0
  139. data/lib/deprec/{cap/templates → templates}/ssh/sshd_config.erb +0 -0
  140. data/lib/deprec/{cap/templates → templates}/ssl/make-ssl-cert +0 -0
  141. data/lib/deprec/{cap/templates → templates}/ssl/ssl-cert-snakeoil.key +0 -0
  142. data/lib/deprec/{cap/templates → templates}/ssl/ssl-cert-snakeoil.pem +0 -0
  143. data/lib/deprec/{cap/templates → templates}/stunnel/stunnel.conf-client +0 -0
  144. data/lib/deprec/{cap/templates → templates}/stunnel/stunnel.conf-orig +0 -0
  145. data/lib/deprec/{cap/templates → templates}/stunnel/stunnel.conf-server +0 -0
  146. data/lib/deprec/{cap/templates → templates}/stunnel/stunnel4 +0 -0
  147. data/lib/deprec/{cap/templates → templates}/stunnel/syslog-server.pem +0 -0
  148. data/lib/deprec/{cap/templates → templates}/syslog/syslog.conf.erb +0 -0
  149. data/lib/deprec/{cap/templates → templates}/syslog/syslogd.erb +0 -0
  150. data/lib/deprec/{cap/templates → templates}/syslog_ng/apache_syslog +0 -0
  151. data/lib/deprec/{cap/templates → templates}/syslog_ng/syslog-ng.conf-client +0 -0
  152. data/lib/deprec/{cap/templates → templates}/syslog_ng/syslog-ng.conf-orig +0 -0
  153. data/lib/deprec/{cap/templates → templates}/syslog_ng/syslog-ng.conf-server +0 -0
  154. data/lib/deprec/{cap/templates → templates}/xen/network-bridge-wrapper +0 -0
  155. data/lib/deprec/{cap/templates → templates}/xen/xend-config.sxp.erb +0 -0
  156. data/lib/deprec/{cap/templates → templates}/xen/xend-init.erb +0 -0
  157. data/lib/deprec/{cap/templates → templates}/xen/xendomains.erb +0 -0
  158. data/lib/deprec/{cap/templates → templates}/xentools/15-disable-hwclock +0 -0
  159. data/lib/deprec/{cap/templates → templates}/xentools/40-setup-networking +0 -0
  160. data/lib/deprec/{cap/templates → templates}/xentools/xen-tools.conf.erb +0 -0
  161. data/lib/deprec/{cap/templates → templates}/xentools/xm.tmpl.erb +0 -0
  162. data/lib/deprec/version.rb +1 -1
  163. metadata +161 -162
  164. data/lib/deprec/cap/recipes/deprec.rb +0 -191
  165. data/lib/deprec/rake.rb +0 -12
  166. data/lib/deprec/rake/environments.rake +0 -9
data/CHANGELOG CHANGED
@@ -1,4 +1,35 @@
1
- # deprec changelog
1
+ deprec changelog
2
+ ================
3
+
4
+ = 3.1.0.rc4 (Jul 17, 2011)
5
+
6
+ deprec3 introduces some major changes that make it
7
+ more powerful yet simpler in structure and usage.
8
+
9
+ # Now providing Rake tasks
10
+
11
+ Through the magic of bundler, deprec3 now provides
12
+ Rake tasks in addition to Capistrano tasks. The two
13
+ even work hand in hand with cap tasks calling rake
14
+ tasks by the same name on remote servers. Accessing
15
+ these rake tasks requires just a single Gemfile entry.
16
+
17
+ gem "deprec"
18
+
19
+ Run 'bundle' and you will now have deprec Rake tasks
20
+
21
+ [mbailey@island ~]$ rake -T
22
+ rake deprec:db:backup # Backup the database to a file.
23
+ rake deprec:db:restore # Restore database [Pending]
24
+
25
+ # Build your own recipe gem using deprec-core
26
+
27
+ deprec's inner magic has been extracted out into the
28
+ deprec-core rubygem. This means deprec is a lightweight
29
+ set of recipes. It also means creating your own recipe
30
+ gem is that much simpler because you can easily reuse
31
+ the magic in deprec-core
32
+
2
33
 
3
34
  = 2.2.3 (Jul 15, 2011)
4
35
 
@@ -1,10 +1,4 @@
1
1
  # Copyright 2006-2008 by Mike Bailey. All rights reserved.
2
- unless Capistrano::Configuration.respond_to?(:instance)
3
- abort "deprec2 requires Capistrano 2"
4
- end
5
- require "#{File.dirname(__FILE__)}/cap/recipes/canonical"
6
- require "#{File.dirname(__FILE__)}/cap/recipes/deprec"
7
- require "#{File.dirname(__FILE__)}/cap/recipes/deprecated"
8
2
 
9
3
  # Updated for deprec3
10
4
 
data/lib/deprec.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  require 'deprec-core'
2
2
  if defined?(Capistrano)
3
- require "#{File.dirname(__FILE__)}/deprec/cap"
3
+ Dir.glob('deprec/recipes/*.rb').each { |t| require t }
4
4
  elsif defined?(Rake)
5
- require "#{File.dirname(__FILE__)}/deprec/rake"
5
+ Dir.glob('deprec/recipes/*.rake').each { |t| import t }
6
6
  end
@@ -0,0 +1,3 @@
1
+ after 'deploy:setup', 'deprec:deploy:chown'
2
+ after 'deploy:update_code', 'deprec:deploy:symlink_database_yml'
3
+ after 'deploy:update_code', 'symlink_backups'
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -0,0 +1,21 @@
1
+ # Copyright 2006-2008 by Mike Bailey. All rights reserved.
2
+ Capistrano::Configuration.instance(:must_exist).load do
3
+ namespace :deprec do
4
+ namespace :deploy do
5
+
6
+ task :chown, :roles => :app do
7
+ run "#{sudo} chown -R #{user} #{deploy_to}"
8
+ end
9
+
10
+ task :symlink_database_yml, :roles => :app do
11
+ run "ln -nfs #{shared_path}/system/database.yml #{release_path}/config/database.yml"
12
+ end
13
+
14
+ task :symlink_backups, :roles => :app do
15
+ run "test -d #{shared_path}/system/backups || mkdir #{shared_path}/system/backups"
16
+ run "ln -nfs #{shared_path}/system/backups #{latest_release}/db/backups"
17
+ end
18
+
19
+ end
20
+ end
21
+ end
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes