Sha256: 72b7a99361d921a9831bb7f6d40e140db4bef9270059b2a766537b7107737f6d
Contents?: true
Size: 1.02 KB
Versions: 2
Compression:
Stored size: 1.02 KB
Contents
module Jumpup module Heroku class Env def self.all if Jumpup::Heroku.configuration.valid? { app: Jumpup::Heroku.configuration.app, staging_app: Jumpup::Heroku.configuration.staging_app, production_app: Jumpup::Heroku.configuration.production_app, run_database_tasks: Jumpup::Heroku.configuration.run_database_tasks, host: Jumpup::Heroku.configuration.host, deploy_branch: Jumpup::Heroku.configuration.deploy_branch, deploy_to_production_branch: Jumpup::Heroku.configuration.deploy_to_production_branch, }.delete_if { |k, v| v.nil? } else error_message = 'Check your `/config/initializers/jumpup-heroku.rb` and ' \ 'confirm you have defined only `app` or `staging_app` and `production_app` together ' \ 'more info here https://github.com/Helabs/jumpup-heroku' raise ConfigurationError, error_message end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jumpup-heroku-0.0.6 | lib/jumpup/heroku/env.rb |
jumpup-heroku-0.0.5 | lib/jumpup/heroku/env.rb |