ms_deploy 0.3.5 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,7 +8,7 @@ Capistrano::Configuration.instance.load do
8
8
  set :protocol, :both
9
9
 
10
10
  set :scm, :git
11
- set :git_enable_submodules, true
11
+ set :git_enable_submodules, false
12
12
 
13
13
  # set deployment strategy
14
14
  set :deploy_via, :remote_cache
@@ -53,9 +53,6 @@ Capistrano::Configuration.instance.load do
53
53
  #Dynamically skip Capistrano hooks example
54
54
  # before 'deploy:update_code', 'db:dump' unless fetch(:skip_dump, false)
55
55
  # $ cap staging deploy -S skip_dump=true
56
-
57
- set :group, user
58
- set :admin_runner, user
59
56
  end
60
57
 
61
58
  before 'deploy', 'test_and_prepare_cap_env'
@@ -67,7 +64,7 @@ Capistrano::Configuration.instance.load do
67
64
  current, previous, latest = current_revision[0, 7], previous_revision[0, 7], real_revision[0, 7]
68
65
  puts "\n" << "-"*63
69
66
  puts "===== Master Revision: \033[1;33m#{latest}\033[0m\n\n"
70
- puts "===== [ \033[1;36m#{application.capitalize} - #{stage.capitalize}\033[0m ]"
67
+ puts "===== [ \033[1;36m#{application.capitalize} - #{stage.to_s.capitalize}\033[0m ]"
71
68
  puts "=== Deployed Revision: \033[1;32m#{current}\033[0m"
72
69
  puts "=== Previous Revision: \033[1;32m#{previous}\033[0m\n\n"
73
70
 
@@ -14,6 +14,10 @@ Capistrano::Configuration.instance.load do
14
14
  directories_to_create.each { |directory| run "mkdir -p #{directory}" }
15
15
  end
16
16
 
17
+ task :set_permissions, :roles => :app do
18
+ try_sudo "chown -R #{user}:#{fetch(:group, user)} #{deploy_to}" if fetch(:use_sudo, false)
19
+ end
20
+
17
21
  task :database, :roles => :db do
18
22
  _cset :db_admin_user, 'root'
19
23
  _cset :db_admin_password, Capistrano::CLI.password_prompt("Type your mysql password for user '#{db_admin_user}' (not set if empty): ")
@@ -34,6 +38,7 @@ Capistrano::Configuration.instance.load do
34
38
  before 'deploy:setup', 'deploy:prepare:database';
35
39
  before :'deploy:setup', :'deploy:prepare:create_config_files';
36
40
  before :'deploy:setup', :'deploy:prepare:create_shared_folders';
41
+ after 'deploy:setup', 'deploy:prepare:set_permissions';
37
42
 
38
43
  end
39
44
 
@@ -1,3 +1,3 @@
1
1
  module MsDeploy
2
- VERSION = "0.3.5"
2
+ VERSION = "0.3.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ms_deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-09 00:00:00.000000000 Z
12
+ date: 2012-10-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: gemcutter