xgamerx-cap-recipes 0.0.8 → 0.0.9

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.
@@ -56,12 +56,20 @@ Capistrano::Configuration.instance(true).load do
56
56
  task :tail do
57
57
  stream "tail -f #{shared_path}/log/backgroundrb_#{backgroundrb_port}.log"
58
58
  end
59
+
60
+ desc "Repair permissions to allow user to perform all actions"
61
+ task :repair_permissions, :role => :app do
62
+ puts "Applying correct permissions to allow for proper command execution"
63
+ sudo "chmod -R 744 #{current_path}"
64
+ sudo "chown -R nate:nate #{current_path}"
65
+ end
59
66
  end
60
67
 
61
68
  # ===============================================================
62
69
  # TASK CALLBACKS
63
70
  # ===============================================================
64
71
 
65
- after "deploy:update_code", "backgroundrb:copy_config"
66
- after "deploy:restart" , "backgroundrb:restart"
72
+ after "deploy:update_code" , "backgroundrb:copy_config"
73
+ after "deploy:restart" , "backgroundrb:restart"
74
+ after "backgroundrb:restart" , "backgroundrb:repair_permissions"
67
75
  end
@@ -87,7 +87,7 @@ Capistrano::Configuration.instance(true).load do
87
87
  # ===============================================================
88
88
  # TASK CALLBACKS
89
89
  # ===============================================================
90
- after "deploy:update_code", "deploy:repair_permissions" # fix the permissions to work properly
91
90
  after "deploy:update_code", "deploy:copy_config" # copy database.yml file to release path
92
91
  after "deploy:update_code", "sweep:cache" # clear cache after updating code
92
+ after "deploy:restart" , "deploy:repair_permissions" # fix the permissions to work properly
93
93
  end
@@ -2,7 +2,7 @@ module CapRecipes #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- TINY = 8
5
+ TINY = 9
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xgamerx-cap-recipes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Esquenazi