heroku_rake_deploy 0.0.1 → 0.0.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4eb873ca3982316f8b824f9c8c6523db17daed18
4
- data.tar.gz: a7d89baf5c31f1af582014139c195339fa0a7c4b
3
+ metadata.gz: 22faf2a47cb101bbc7ad231eb0bf5d10a041976d
4
+ data.tar.gz: fc8b755edd9cd1785a98efd621642252bed4045e
5
5
  SHA512:
6
- metadata.gz: 9d06846945a1bd663ba1999b8e082457c9be3f32bb6e20946f7b4ac142e53d8e51db497c5ba4a3cec1ba680d02ef56d0fa5155e9e529350388c452187226abb0
7
- data.tar.gz: 8d8e38a2bbd0df9170a804d2b06e2630d97e5c0c88b59e7aa8cad92ba4ad1427f15824145617130d02296b1876b584bfb01a0ffcbd5840b409315e9c9e33e1a1
6
+ metadata.gz: da088ae5ce9eea3e81035ff6a702e9904d6ec1d93eff1062b03bb45d40fd37ed364f00c19089b20e5001da31fb0f9136c2d05ab26ff6d0ad8c1e8f9e0f8a2b44
7
+ data.tar.gz: fdaa7edb8bf2ffbeb4d70867fe7dc1d281a79de8faa17aa51799307bf70934a8333ca0c2d756c9d42ebeba16f94ef591cd6402fdc60ba57203637f7d3847104b
data/README.md CHANGED
@@ -1,22 +1,13 @@
1
1
  # HerokuRakeDeploy
2
2
 
3
- A (for now) very opinionated gem which has 3 sections:
3
+ Provides deploy and db restore tasks for your app
4
4
 
5
- * pipeline/app setup
6
- * db restore (pull down your heroku database and `psql < tmp/latest.db`)
7
- * deploys (push to heroku remotes)
8
-
9
- These tasks all assume your heroku application names are of the format `"#{Rails.application.class.parent_name.underscore.gsub('_','-')}-#{environment}"`, where environment is one of staging, production. Setting up an app includes the following free Heroku addons:
10
-
11
- *heroku-postgresql:hobby-dev
12
- *newrelic:wayne
13
- *papertrail:choklad
14
- *rediscloud:30
15
- *scheduler:standard
16
- *sendgrid:starter
17
-
18
- App name configuration flags and more detailed documentation will come in a later version.
5
+ Use the following environmental variables to control the heroku app name to be deployed/restored from:
19
6
 
7
+ ```
8
+ HEROKU_APPNAME_PRODUCTION
9
+ HEROKU_APPNAME_STAGING
10
+ ```
20
11
 
21
12
  ## Installation
22
13
 
@@ -1,3 +1,3 @@
1
1
  module HerokuRakeDeploy
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -1,9 +1,9 @@
1
1
  def app_name_from_environment(env)
2
2
  case env.downcase
3
3
  when "production"
4
- "#{Rails.application.class.parent_name.underscore.gsub('_','-')}-production"
4
+ ENV['HEROKU_APPNAME_PRODUCTION'] || "#{Rails.application.class.parent_name.underscore.gsub('_','-')}-production"
5
5
  when "staging"
6
- "#{Rails.application.class.parent_name.underscore.gsub('_','-')}-staging"
6
+ ENV['HEROKU_APPNAME_STAGING'] || "#{Rails.application.class.parent_name.underscore.gsub('_','-')}-staging"
7
7
  end
8
8
  end
9
9
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: heroku_rake_deploy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - nrowegt