heroku-rails 0.2.8 → 0.2.9
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/heroku-rails.gemspec +1 -1
- data/lib/heroku/rails/tasks.rb +10 -0
- metadata +5 -5
data/Gemfile.lock
CHANGED
data/heroku-rails.gemspec
CHANGED
data/lib/heroku/rails/tasks.rb
CHANGED
@@ -6,6 +6,12 @@ HEROKU_RUNNER = Heroku::Rails::HerokuRunner.new(HEROKU_CONFIG)
|
|
6
6
|
(HEROKU_CONFIG.apps).each do |heroku_env, app_name|
|
7
7
|
desc "Select #{heroku_env} Heroku app for later commands"
|
8
8
|
task heroku_env do
|
9
|
+
|
10
|
+
# callback switch_environment
|
11
|
+
@heroku_app = {:env => heroku_env, :app_name => app_name}
|
12
|
+
Rake::Task["heroku:switch_environment"].reenable
|
13
|
+
Rake::Task["heroku:switch_environment"].invoke
|
14
|
+
|
9
15
|
HEROKU_RUNNER.add_environment(heroku_env)
|
10
16
|
end
|
11
17
|
end
|
@@ -85,6 +91,10 @@ namespace :heroku do
|
|
85
91
|
task :after_each_deploy do
|
86
92
|
end
|
87
93
|
|
94
|
+
# Callback for when we switch environment
|
95
|
+
task :switch_environment do
|
96
|
+
end
|
97
|
+
|
88
98
|
desc "Force deploys, migrates and restarts latest code"
|
89
99
|
task :force_deploy do
|
90
100
|
@git_push_arguments ||= []
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 2
|
8
|
-
-
|
9
|
-
version: 0.2.
|
8
|
+
- 9
|
9
|
+
version: 0.2.9
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Elijah Miller
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-11-
|
19
|
+
date: 2010-11-16 00:00:00 -08:00
|
20
20
|
default_executable:
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
@@ -94,7 +94,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
94
94
|
requirements:
|
95
95
|
- - ">="
|
96
96
|
- !ruby/object:Gem::Version
|
97
|
-
hash:
|
97
|
+
hash: 1892535180642759805
|
98
98
|
segments:
|
99
99
|
- 0
|
100
100
|
version: "0"
|
@@ -103,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
103
103
|
requirements:
|
104
104
|
- - ">="
|
105
105
|
- !ruby/object:Gem::Version
|
106
|
-
hash:
|
106
|
+
hash: 1892535180642759805
|
107
107
|
segments:
|
108
108
|
- 0
|
109
109
|
version: "0"
|