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.
- data/CHANGELOG +32 -1
- data/{lib/deprec/cap.rb → docs/old_cap_require_list.rb} +0 -6
- data/lib/deprec.rb +2 -2
- data/lib/deprec/{cap/callbacks → callbacks}/asset_pipeline.rb +0 -0
- data/lib/deprec/callbacks/deploy.rb +3 -0
- data/lib/deprec/{cap/recipes → recipes}/aoe.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/apache.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/bash.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/canonical.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/collectd.rb +0 -0
- data/lib/deprec/{rake → recipes}/db.rake +0 -0
- data/lib/deprec/recipes/deploy.rb +21 -0
- data/lib/deprec/{cap/recipes → recipes}/deprecated.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/ec2.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/example.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/git.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/haproxy.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/heartbeat.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/logrotate.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/lvm.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/mongrel.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/monit.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/mri.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/mysql.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/nagios.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/nagios3.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/network.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/nginx.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/nrpe.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/ntp.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/passenger.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/php.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/postfix.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/postgresql.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/rack.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/rails.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/ree.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/rubygems.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/sqlite.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/ssh.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/ssl.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/stunnel.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/syslog.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/syslog_ng.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/ubuntu.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/users.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/utils.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/xen.rb +0 -0
- data/lib/deprec/{cap/recipes → recipes}/xentools.rb +0 -0
- data/lib/deprec/{cap/templates → templates}/aoe/aoe-init +0 -0
- data/lib/deprec/{cap/templates → templates}/aoe/fence_aoemask +0 -0
- data/lib/deprec/{cap/templates → templates}/apache/CHANGES.txt +0 -0
- data/lib/deprec/{cap/templates → templates}/apache/apache2.conf.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/apache/default.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/apache/namevirtualhosts.conf +0 -0
- data/lib/deprec/{cap/templates → templates}/apache/ports.conf.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/apache/status.conf.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/apache/vhost.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/bash/bash_global +0 -0
- data/lib/deprec/{cap/templates → templates}/collectd/collectd-init.d +0 -0
- data/lib/deprec/{cap/templates → templates}/collectd/collectd.conf.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/deprec/caprc.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/haproxy/haproxy-init.d +0 -0
- data/lib/deprec/{cap/templates → templates}/haproxy/haproxy.cfg.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/heartbeat/authkeys.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/heartbeat/ha.cf.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/heartbeat/haresources.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/logrotate/logrotate.conf.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/mongrel/apache_vhost.conf.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/mongrel/logrotate.conf.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/mongrel/mongrel_cluster-init-script +0 -0
- data/lib/deprec/{cap/templates → templates}/mongrel/mongrel_cluster.yml.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/mongrel/monit.conf.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/mongrel/nginx_vhost.conf.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/monit/monit-init-script +0 -0
- data/lib/deprec/{cap/templates → templates}/monit/monitrc.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/monit/nothing.monitrc +0 -0
- data/lib/deprec/{cap/templates → templates}/mysql/create_databases.sql +0 -0
- data/lib/deprec/{cap/templates → templates}/mysql/database.yml.prod +0 -0
- data/lib/deprec/{cap/templates → templates}/mysql/database.yml.stage +0 -0
- data/lib/deprec/{cap/templates → templates}/mysql/my.cnf.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/mysql/sphinx.conf.prod +0 -0
- data/lib/deprec/{cap/templates → templates}/mysql/sphinx.conf.stage +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios.old/README +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios.old/apache_vhost.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios.old/cgi.cfg.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios.old/check_linux_free_memory.pl +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios.old/check_mongrel_cluster.rb +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios.old/htpasswd.users +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios.old/mrtg.cfg +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios.old/nagios.cfg.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios.old/nrpe.cfg.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios.old/nrpe.xinetd.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios.old/objects/commands.cfg.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios.old/objects/contacts.cfg.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios.old/objects/hosts.cfg.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios.old/objects/localhost.cfg.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios.old/objects/services.cfg.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios.old/objects/timeperiods.cfg.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios.old/resource.cfg.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios/apache2.conf +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios/cgi.cfg +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios/check_linux_free_memory.pl +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios/commands.cfg +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios/conf.d/contacts_nagios2.cfg +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios/conf.d/extinfo_nagios2.cfg +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios/conf.d/generic-host_nagios2.cfg +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios/conf.d/generic-service_nagios2.cfg +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios/conf.d/hostgroups_nagios2.cfg +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios/conf.d/hosts/localhost_nagios2.cfg +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios/conf.d/services_nagios2.cfg +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios/conf.d/timeperiods_nagios2.cfg +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios/host_template.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios/htpasswd.users +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios/nagios.cfg +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios/nrpe.cfg +0 -0
- data/lib/deprec/{cap/templates → templates}/nagios/resource.cfg +0 -0
- data/lib/deprec/{cap/templates → templates}/network/hostname.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/network/hosts.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/network/interfaces.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/network/resolv.conf.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/nginx/logrotate.conf.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/nginx/mime.types.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/nginx/nginx-init-script +0 -0
- data/lib/deprec/{cap/templates → templates}/nginx/nginx.conf.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/nginx/nginx.logrotate.d +0 -0
- data/lib/deprec/{cap/templates → templates}/nginx/nothing.conf +0 -0
- data/lib/deprec/{cap/templates → templates}/nginx/rails_nginx_vhost.conf.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/ntp/ntp.conf.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/passenger/apache_vhost.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/passenger/logrotate.conf.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/passenger/passenger.conf.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/passenger/passenger.load.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/postfix/aliases.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/postfix/dynamicmaps.cf.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/postfix/main.cf.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/postfix/master.cf.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/ssh/ssh_config.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/ssh/sshd_config.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/ssl/make-ssl-cert +0 -0
- data/lib/deprec/{cap/templates → templates}/ssl/ssl-cert-snakeoil.key +0 -0
- data/lib/deprec/{cap/templates → templates}/ssl/ssl-cert-snakeoil.pem +0 -0
- data/lib/deprec/{cap/templates → templates}/stunnel/stunnel.conf-client +0 -0
- data/lib/deprec/{cap/templates → templates}/stunnel/stunnel.conf-orig +0 -0
- data/lib/deprec/{cap/templates → templates}/stunnel/stunnel.conf-server +0 -0
- data/lib/deprec/{cap/templates → templates}/stunnel/stunnel4 +0 -0
- data/lib/deprec/{cap/templates → templates}/stunnel/syslog-server.pem +0 -0
- data/lib/deprec/{cap/templates → templates}/syslog/syslog.conf.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/syslog/syslogd.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/syslog_ng/apache_syslog +0 -0
- data/lib/deprec/{cap/templates → templates}/syslog_ng/syslog-ng.conf-client +0 -0
- data/lib/deprec/{cap/templates → templates}/syslog_ng/syslog-ng.conf-orig +0 -0
- data/lib/deprec/{cap/templates → templates}/syslog_ng/syslog-ng.conf-server +0 -0
- data/lib/deprec/{cap/templates → templates}/xen/network-bridge-wrapper +0 -0
- data/lib/deprec/{cap/templates → templates}/xen/xend-config.sxp.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/xen/xend-init.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/xen/xendomains.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/xentools/15-disable-hwclock +0 -0
- data/lib/deprec/{cap/templates → templates}/xentools/40-setup-networking +0 -0
- data/lib/deprec/{cap/templates → templates}/xentools/xen-tools.conf.erb +0 -0
- data/lib/deprec/{cap/templates → templates}/xentools/xm.tmpl.erb +0 -0
- data/lib/deprec/version.rb +1 -1
- metadata +161 -162
- data/lib/deprec/cap/recipes/deprec.rb +0 -191
- data/lib/deprec/rake.rb +0 -12
- data/lib/deprec/rake/environments.rake +0 -9
data/CHANGELOG
CHANGED
@@ -1,4 +1,35 @@
|
|
1
|
-
|
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
|
-
|
3
|
+
Dir.glob('deprec/recipes/*.rb').each { |t| require t }
|
4
4
|
elsif defined?(Rake)
|
5
|
-
|
5
|
+
Dir.glob('deprec/recipes/*.rake').each { |t| import t }
|
6
6
|
end
|
File without changes
|
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
|
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
|
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
|
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
|