Class: KapostDeploy::Plugins::ValidateBeforePromote
- Inherits:
-
Object
- Object
- KapostDeploy::Plugins::ValidateBeforePromote
- Defined in:
- lib/kapost_deploy/plugins/validate_before_promote.rb
Overview
Validates runtime configuration
Instance Method Summary collapse
- #before ⇒ Object
-
#initialize(config) ⇒ ValidateBeforePromote
constructor
A new instance of ValidateBeforePromote.
Constructor Details
#initialize(config) ⇒ ValidateBeforePromote
Returns a new instance of ValidateBeforePromote.
7 8 9 |
# File 'lib/kapost_deploy/plugins/validate_before_promote.rb', line 7 def initialize(config) @config = config end |
Instance Method Details
#before ⇒ Object
11 12 13 14 15 16 |
# File 'lib/kapost_deploy/plugins/validate_before_promote.rb', line 11 def before fail " No 'heroku_api_token' configured. Set config.heroku_api_token to your\n API secret token (use `heroku auth:token` to get it).\n MSG\nend\n" unless @config.heroku_api_token |