ms_deploy 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,22 +1,22 @@
|
|
1
1
|
Capistrano::Configuration.instance.load do
|
2
2
|
|
3
|
-
|
4
|
-
|
3
|
+
set :keep_releases, 10
|
4
|
+
set :use_sudo, false
|
5
5
|
|
6
|
-
|
6
|
+
set :protocol, :both
|
7
7
|
|
8
|
-
|
9
|
-
|
8
|
+
set :scm, :git
|
9
|
+
set :git_enable_submodules, true
|
10
10
|
|
11
11
|
# set deployment strategy
|
12
|
-
|
13
|
-
|
12
|
+
set :deploy_via, :remote_cache
|
13
|
+
set :copy_exclude, %w(.git .svn .DS_Store test doc .gitkeep)
|
14
14
|
#_cset :repository_cache, "cached-copy" # defaults to :shared_path + 'cached-copy/'
|
15
15
|
|
16
16
|
# :forward_agent allows us to avoid using and distributing a deploy key.
|
17
17
|
# On problems run 'ssh-add' locally
|
18
18
|
# In your /etc/ssh/ssh_config or ~/.ssh/config you need to have ForwardAgent enabled for this to work.
|
19
|
-
|
19
|
+
set :ssh_options, {:port => fetch(:ssh_port, 22), :forward_agent => true, :paranoid => true}
|
20
20
|
|
21
21
|
default_run_options[:pty] = true
|
22
22
|
|
@@ -54,7 +54,6 @@ Capistrano::Configuration.instance.load do
|
|
54
54
|
end
|
55
55
|
|
56
56
|
before 'deploy', 'test_and_prepare_cap_env'
|
57
|
-
before 'deploy:setup', 'deploy:prepare:database';
|
58
57
|
after 'deploy:update', 'deploy:cleanup'
|
59
58
|
|
60
59
|
desc "Show currently deployed revision on server."
|
@@ -11,7 +11,7 @@ Capistrano::Configuration.instance.load do
|
|
11
11
|
|
12
12
|
desc "Set up shared directory structure"
|
13
13
|
task :create_shared_folders do
|
14
|
-
|
14
|
+
directories_to_create.each { |directory| run "mkdir -p #{directory}" }
|
15
15
|
end
|
16
16
|
|
17
17
|
task :database do
|
@@ -31,8 +31,9 @@ Capistrano::Configuration.instance.load do
|
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
34
|
-
before
|
35
|
-
before :
|
34
|
+
before 'deploy:setup', 'deploy:prepare:database';
|
35
|
+
before :'deploy:setup', :'deploy:prepare:create_config_files';
|
36
|
+
before :'deploy:setup', :'deploy:prepare:create_shared_folders';
|
36
37
|
|
37
38
|
end
|
38
39
|
|
data/lib/ms_deploy/version.rb
CHANGED
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.1.
|
4
|
+
version: 0.1.8
|
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-
|
12
|
+
date: 2012-07-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: gemcutter
|