deploy_tasks 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown CHANGED
@@ -9,10 +9,15 @@ RAILS_APP like this:
9
9
  Heroku
10
10
  ------
11
11
 
12
- You get the following rake tasks:
12
+ You get the following rake tasks (run `rake -T` to see the descriptions):
13
13
 
14
14
  * deploy:production
15
15
  * deploy:staging
16
+
17
+ * deploy:create_hotfix
18
+ * deploy:hotfix
19
+ * deploy:remove_hotfix
20
+
16
21
  * deploy:juice (if you use juicer)
17
22
 
18
23
  The deploy tasks pull translations from webtranslateit.com if you use it, juice
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.1"
4
+ VERSION = "0.1.2"
5
5
 
6
6
  class Base < Rails::Railtie
7
7
  rake_tasks do
@@ -47,6 +47,33 @@ namespace :deploy do
47
47
  end
48
48
  end
49
49
 
50
+ desc 'Deploy the hotfix branch'
51
+ task :hotfix do
52
+ if working_tree_dirty?
53
+ message 'Please clean your dirty tree!'
54
+ else
55
+ message 'Pushing hotfix branch to production/master..'
56
+ `git push production hotfix:master`
57
+ end
58
+ end
59
+
60
+ desc 'Create the hotfix branch'
61
+ task :create_hotfix do
62
+ if working_tree_dirty?
63
+ message 'Please clean your dirty tree!'
64
+ else
65
+ message 'Creating the branch hotfix from production/master..'
66
+ `git checkout -b hotfix production/master`
67
+ end
68
+ end
69
+
70
+ desc 'Remove the hotfix branch'
71
+ task :remove_hotfix do
72
+ message 'Deleting the hotfix branch..'
73
+ `git checkout master`
74
+ `git branch -d hotfix`
75
+ end
76
+
50
77
  desc 'Generate minified CSS and JavaScript files'
51
78
  task :juice do
52
79
  # css
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: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 1
10
- version: 0.1.1
9
+ - 2
10
+ version: 0.1.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Thomas Maurer
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-05-03 00:00:00 +02:00
19
- default_executable:
18
+ date: 2011-05-31 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: rails
@@ -50,7 +49,6 @@ files:
50
49
  - lib/deploy_tasks.rb
51
50
  - lib/tasks/capistrano.rake
52
51
  - lib/tasks/heroku.rake
53
- has_rdoc: true
54
52
  homepage: ""
55
53
  licenses: []
56
54
 
@@ -80,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
78
  requirements: []
81
79
 
82
80
  rubyforge_project: deploy_tasks
83
- rubygems_version: 1.6.2
81
+ rubygems_version: 1.8.4
84
82
  signing_key:
85
83
  specification_version: 3
86
84
  summary: Common deploy tasks