capistrano-deploy 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  Gem::Specification.new do |s|
3
3
  s.name = 'capistrano-deploy'
4
- s.version = '0.0.6'
4
+ s.version = '0.0.7'
5
5
  s.platform = Gem::Platform::RUBY
6
6
  s.authors = ['Just Lest']
7
7
  s.email = ['just.lest@gmail.com']
@@ -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
- run "cd #{deploy_to} && git fetch origin && git reset --hard origin/#{branch}"
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: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 6
10
- version: 0.0.6
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-02-25 00:00:00 +02:00
18
+ date: 2011-03-04 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency