capistrano-deploy 0.0.6 → 0.0.7
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/capistrano-deploy.gemspec +1 -1
- data/lib/capistrano-deploy/deploy.rb +5 -1
- metadata +4 -4
data/capistrano-deploy.gemspec
CHANGED
|
@@ -7,6 +7,8 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
|
7
7
|
|
|
8
8
|
set :branch, 'master'
|
|
9
9
|
|
|
10
|
+
set :enable_submodules, false
|
|
11
|
+
|
|
10
12
|
set(:current_revision) { capture("cd #{deploy_to} && git rev-parse HEAD").chomp }
|
|
11
13
|
|
|
12
14
|
namespace :deploy do
|
|
@@ -36,7 +38,9 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
|
36
38
|
|
|
37
39
|
desc 'Update the deployed code'
|
|
38
40
|
task :update_code, :except => {:no_release => true} do
|
|
39
|
-
|
|
41
|
+
command = ["cd #{deploy_to}", 'git fetch origin', "git reset --hard origin/#{branch}"]
|
|
42
|
+
command += ['git submodule init', 'git submodule -q sync', 'git submodule -q update'] if enable_submodules
|
|
43
|
+
run command.join(' && ')
|
|
40
44
|
end
|
|
41
45
|
|
|
42
46
|
desc 'Run migrations'
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: capistrano-deploy
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 17
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
9
|
+
- 7
|
|
10
|
+
version: 0.0.7
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Just Lest
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2011-
|
|
18
|
+
date: 2011-03-04 00:00:00 +02:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|