deprec 2.0.2 → 2.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG CHANGED
@@ -1,5 +1,9 @@
1
1
  == git
2
2
 
3
+ == 2.0.3 (March 3, 2009)
4
+
5
+ * bugfix - can't set ownership of environment.rb before deploy!
6
+
3
7
  == 2.0.2 (March 3, 2009)
4
8
 
5
9
  * Change owner of config/environment.rb to the value of app_user after deploy
@@ -134,11 +134,11 @@ Capistrano::Configuration.instance(:must_exist).load do
134
134
  deprec2.push_configs(:passenger, PROJECT_CONFIG_FILES[:passenger])
135
135
  symlink_apache_vhost
136
136
  activate_project
137
- set_ownership_of_environment_rb
138
137
  end
139
138
 
140
- task :set_ownership_of_environment_rb, :roles => :app do
141
- sudo "chown #{app_user} #{current_path}/config/environment.rb"
139
+ # Passenger runs Rails as the owner of this file.
140
+ task :set_owner_of_environment_rb, :roles => :app do
141
+ sudo "chown #{app_user} #{current_path}/config/environment.rb"
142
142
  end
143
143
 
144
144
  task :symlink_apache_vhost, :roles => :app do
@@ -38,7 +38,7 @@ Capistrano::Configuration.instance(:must_exist).load do
38
38
  top.deprec.rails.symlink_shared_dirs
39
39
  top.deprec.rails.symlink_database_yml unless database_yml_in_scm
40
40
  top.deprec.rails.make_writable_by_app
41
- set_owner_of_environment_rb if web_server_type.to_s == 'passenger'
41
+ top.deprec.passenger.set_owner_of_environment_rb if app_server_type.to_s == 'passenger'
42
42
  end
43
43
 
44
44
  after :deploy, "deploy:cleanup"
@@ -170,11 +170,6 @@ Capistrano::Configuration.instance(:must_exist).load do
170
170
  sudo "chgrp -R #{group} #{shared_path} #{releases}"
171
171
  sudo "chmod -R g+w #{shared_path} #{releases}"
172
172
  end
173
-
174
- # Passenger runs Rails as the owner of this file.
175
- task :set_owner_of_environment_rb, :roles => :app do
176
- sudo "chown #{app_user} #{current_path}/config/environment.rb"
177
- end
178
173
 
179
174
  # Setup database server.
180
175
  task :setup_db, :roles => :db, :only => { :primary => true } do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deprec
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Bailey