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 CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'rails/railtie'
2
2
 
3
3
  module DeployTasks
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
 
6
6
  class Base < Rails::Railtie
7
7
  rake_tasks do
@@ -1,9 +1,9 @@
1
1
  namespace :deploy do
2
2
  desc 'Deploy to staging'
3
3
  task :staging do
4
- if Rake::Task['trans:fetch:all'].present?
4
+ if pull_translations?
5
5
  message 'Pulling translations..'
6
- Rake::Task['trans:fetch:all'].execute
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['trans:fetch:all'].execute
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
- Rake::Task['trans:fetch:all'].present?
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: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
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-05-31 00:00:00 Z
18
+ date: 2011-06-01 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rails