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 <<~MSG unless @config.heroku_api_token No 'heroku_api_token' configured. Set config.heroku_api_token to your API secret token (use `heroku auth:token` to get it). MSG end |