sumodev_deploy 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -23,6 +23,7 @@ configuration.load do
23
23
  _cset(:app_path) { "apps/#{client}/#{project}" }
24
24
  _cset(:shared_files_path) { "#{shared_path}/files/"}
25
25
  _cset(:document_root) { "#{homedir}#{client}/#{project}" }
26
+ _cset(:keep_releases) { fetch(:stage, 'production').intern == :staging ? 1 : 3 }
26
27
 
27
28
  set(:application) { project }
28
29
  set(:deploy_to) { "#{homedir}#{app_path}"}
@@ -31,6 +32,8 @@ configuration.load do
31
32
  role(:web) { web_servers }
32
33
  role(:db, :primary => true) { db_server }
33
34
 
35
+ after 'deploy', 'deploy:cleanup'
36
+
34
37
  namespace :sumodev do
35
38
  namespace :db do
36
39
  desc "Create the database. Reads :db_name variable, or it is composed from client / project"
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "sumodev_deploy"
5
- s.version = "0.2.3"
5
+ s.version = "0.2.4"
6
6
 
7
7
  s.authors = ["Jan De Poorter"]
8
8
  s.date = "2012-04-18"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sumodev_deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -39,8 +39,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
39
39
  version: '0'
40
40
  requirements: []
41
41
  rubyforge_project:
42
- rubygems_version: 1.8.15
42
+ rubygems_version: 1.8.24
43
43
  signing_key:
44
44
  specification_version: 3
45
45
  summary: Deployment for Fork 3.x.x with Capistrano
46
46
  test_files: []
47
+ has_rdoc: