deploy_tasks 0.1.2 → 0.1.3
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/lib/deploy_tasks.rb +1 -1
- data/lib/tasks/heroku.rake +9 -4
- metadata +4 -4
data/lib/deploy_tasks.rb
CHANGED
data/lib/tasks/heroku.rake
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
namespace :deploy do
|
2
2
|
desc 'Deploy to staging'
|
3
3
|
task :staging do
|
4
|
-
if
|
4
|
+
if pull_translations?
|
5
5
|
message 'Pulling translations..'
|
6
|
-
Rake::Task['
|
6
|
+
Rake::Task['deploy:translations'].execute
|
7
7
|
end
|
8
8
|
|
9
9
|
if working_tree_dirty?
|
@@ -25,7 +25,7 @@ namespace :deploy do
|
|
25
25
|
|
26
26
|
if pull_translations?
|
27
27
|
message 'Pulling translations..'
|
28
|
-
Rake::Task['
|
28
|
+
Rake::Task['deploy:translations'].execute
|
29
29
|
|
30
30
|
if working_tree_dirty?
|
31
31
|
message 'Please commit the pulled translations!'; exit
|
@@ -85,12 +85,17 @@ namespace :deploy do
|
|
85
85
|
puts `cd #{Rails.root} && juicer merge #{options} public/javascripts/application.js`
|
86
86
|
end
|
87
87
|
|
88
|
+
desc 'Pull translations'
|
89
|
+
task :translations do
|
90
|
+
puts `cd #{Rails.root} && wti pull --force`
|
91
|
+
end
|
92
|
+
|
88
93
|
def working_tree_dirty?
|
89
94
|
`cd #{Rails.root} && git status --short -uno`.present?
|
90
95
|
end
|
91
96
|
|
92
97
|
def pull_translations?
|
93
|
-
|
98
|
+
`which wti`.present?
|
94
99
|
end
|
95
100
|
|
96
101
|
def run_juicer?
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: deploy_tasks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 3
|
10
|
+
version: 0.1.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Thomas Maurer
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-06-01 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: rails
|