Sha256: cb8f2a33b9a62b7939000aa50cae9efb53c3267404d967a97bf50715cc0ab932

Contents?: true

Size: 456 Bytes

Versions: 6

Compression:

Stored size: 456 Bytes

Contents

# frozen_string_literal: true

module KapostDeploy
  module Plugins
    # Validates runtime configuration
    class ValidateBeforePromote
      def initialize(config)
        @config = config
      end

      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
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
kapost_deploy-0.7.1 lib/kapost_deploy/plugins/validate_before_promote.rb
kapost_deploy-0.7.0 lib/kapost_deploy/plugins/validate_before_promote.rb
kapost_deploy-0.6.2 lib/kapost_deploy/plugins/validate_before_promote.rb
kapost_deploy-0.6.1 lib/kapost_deploy/plugins/validate_before_promote.rb
kapost_deploy-0.5.0 lib/kapost_deploy/plugins/validate_before_promote.rb
kapost_deploy-0.4.0 lib/kapost_deploy/plugins/validate_before_promote.rb