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.
- data/CHANGELOG +4 -0
- data/lib/deprec/callbacks/asset_pipeline.rb +1 -8
- data/lib/deprec/callbacks/deploy.rb +3 -1
- data/lib/deprec/callbacks/passenger.rb +13 -0
- data/lib/deprec/recipes/aoe.rb +1 -1
- data/lib/deprec/recipes/apache.rb +1 -1
- data/lib/deprec/recipes/bash.rb +1 -1
- data/lib/deprec/recipes/canonical.rb +1 -1
- data/lib/deprec/recipes/collectd.rb +1 -1
- data/lib/deprec/recipes/db.rake +1 -0
- data/lib/deprec/recipes/deploy.rb +4 -1
- data/lib/deprec/recipes/deprecated.rb +1 -1
- data/lib/deprec/recipes/ec2.rb +1 -1
- data/lib/deprec/recipes/example.rb +1 -1
- data/lib/deprec/recipes/git.rb +1 -1
- data/lib/deprec/recipes/haproxy.rb +1 -1
- data/lib/deprec/recipes/heartbeat.rb +1 -1
- data/lib/deprec/recipes/logrotate.rb +1 -1
- data/lib/deprec/recipes/lvm.rb +1 -1
- data/lib/deprec/recipes/mongrel.rb +1 -1
- data/lib/deprec/recipes/monit.rb +1 -1
- data/lib/deprec/recipes/mri.rb +1 -1
- data/lib/deprec/recipes/mysql.rb +1 -1
- data/lib/deprec/recipes/nagios.rb +1 -1
- data/lib/deprec/recipes/nagios3.rb +1 -1
- data/lib/deprec/recipes/network.rb +1 -1
- data/lib/deprec/recipes/nginx.rb +1 -1
- data/lib/deprec/recipes/nrpe.rb +1 -1
- data/lib/deprec/recipes/ntp.rb +1 -1
- data/lib/deprec/recipes/passenger.rb +1 -1
- data/lib/deprec/recipes/php.rb +1 -1
- data/lib/deprec/recipes/postfix.rb +1 -1
- data/lib/deprec/recipes/postgresql.rb +1 -1
- data/lib/deprec/recipes/rack.rb +1 -1
- data/lib/deprec/recipes/rails.rb-disabled +1 -1
- data/lib/deprec/recipes/ree.rb +1 -1
- data/lib/deprec/recipes/rubygems.rb +1 -1
- data/lib/deprec/recipes/sqlite.rb +1 -1
- data/lib/deprec/recipes/ssh.rb +1 -1
- data/lib/deprec/recipes/ssl.rb +1 -1
- data/lib/deprec/recipes/stunnel.rb +1 -1
- data/lib/deprec/recipes/syslog.rb +1 -1
- data/lib/deprec/recipes/syslog_ng.rb +1 -1
- data/lib/deprec/recipes/ubuntu.rb +1 -1
- data/lib/deprec/recipes/users.rb +1 -1
- data/lib/deprec/recipes/utils.rb +1 -1
- data/lib/deprec/recipes/xen.rb +1 -1
- data/lib/deprec/recipes/xentools.rb +1 -1
- data/lib/deprec/version.rb +1 -1
- metadata +3 -2
data/CHANGELOG
CHANGED
@@ -1,15 +1,8 @@
|
|
1
1
|
# Copyright 2011 Chris Griego
|
2
2
|
#
|
3
|
-
|
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-
|
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
|
data/lib/deprec/recipes/aoe.rb
CHANGED
data/lib/deprec/recipes/bash.rb
CHANGED
data/lib/deprec/recipes/db.rake
CHANGED
@@ -1,16 +1,19 @@
|
|
1
|
-
|
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"
|
data/lib/deprec/recipes/ec2.rb
CHANGED
data/lib/deprec/recipes/git.rb
CHANGED
data/lib/deprec/recipes/lvm.rb
CHANGED
data/lib/deprec/recipes/monit.rb
CHANGED
data/lib/deprec/recipes/mri.rb
CHANGED
data/lib/deprec/recipes/mysql.rb
CHANGED
data/lib/deprec/recipes/nginx.rb
CHANGED
data/lib/deprec/recipes/nrpe.rb
CHANGED
data/lib/deprec/recipes/ntp.rb
CHANGED
data/lib/deprec/recipes/php.rb
CHANGED
data/lib/deprec/recipes/rack.rb
CHANGED
data/lib/deprec/recipes/ree.rb
CHANGED
data/lib/deprec/recipes/ssh.rb
CHANGED
data/lib/deprec/recipes/ssl.rb
CHANGED
data/lib/deprec/recipes/users.rb
CHANGED
data/lib/deprec/recipes/utils.rb
CHANGED
data/lib/deprec/recipes/xen.rb
CHANGED
data/lib/deprec/version.rb
CHANGED
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.
|
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-
|
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
|