git-runner-deploy 0.1.4 → 0.1.5
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.
- checksums.yaml +4 -4
- data/lib/git-runner-deploy.rb +8 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 391c6b17b3feaa48e361581e5545da6046f0db54
|
4
|
+
data.tar.gz: 5ca2f915d73f198fc00c9ff63bee910ed4816f73
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ff52f97346cd4db10ffaf8468c1332cb634a83bddd62b4c6df5e5bc6198eba3486acb1b89c00477362c93a14f2b4348e53f4f3ef8f8b08d3d0ac4a2e7887c60
|
7
|
+
data.tar.gz: 8d88de1869aedc7640e59a0b85cbfe9b8aa29d214d595abf2fdfda66e1d9843d5138340a4289a0c2a0126d4bddf04a07b7b648c357a4c445befe1fec6ec3995c
|
data/lib/git-runner-deploy.rb
CHANGED
@@ -7,7 +7,7 @@ module GitRunner
|
|
7
7
|
|
8
8
|
# Performs deployments using capistrano (cap deploy)
|
9
9
|
class Deploy < Base
|
10
|
-
VERSION = '0.1.
|
10
|
+
VERSION = '0.1.5'
|
11
11
|
|
12
12
|
attr_accessor :clone_directory
|
13
13
|
|
@@ -106,6 +106,9 @@ module GitRunner
|
|
106
106
|
"cap deploy"
|
107
107
|
end
|
108
108
|
|
109
|
+
# 'bundle exec' if bundler is being used
|
110
|
+
cap_deploy_command = "bundle exec #{cap_deploy_command}" if uses_bundler?
|
111
|
+
|
109
112
|
Text.indent do
|
110
113
|
execute(
|
111
114
|
"cd #{clone_directory}",
|
@@ -120,10 +123,13 @@ module GitRunner
|
|
120
123
|
def cap_deploy_outproc(out)
|
121
124
|
if out =~ /executing `(.*)'/
|
122
125
|
case $1
|
126
|
+
when 'deploy:update_code'
|
127
|
+
Text.out('* Copying application code')
|
128
|
+
|
123
129
|
when 'bundle:install'
|
124
130
|
Text.out('* Installing gems')
|
125
131
|
|
126
|
-
when 'assets:precompile'
|
132
|
+
when 'assets:precompile', 'deploy:assets:precompile'
|
127
133
|
Text.out('* Precompilng assets')
|
128
134
|
|
129
135
|
when 'deploy:restart'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: git-runner-deploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Brooks
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-09-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: git-runner
|
@@ -57,7 +57,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
57
57
|
version: '0'
|
58
58
|
requirements: []
|
59
59
|
rubyforge_project:
|
60
|
-
rubygems_version: 2.0.
|
60
|
+
rubygems_version: 2.0.6
|
61
61
|
signing_key:
|
62
62
|
specification_version: 4
|
63
63
|
summary: Capistrano deploy module for git-runner
|