Sha256: b20b84a3733442c25266ec7f3f1283f568a3b98fd29b174778731c30d41d39bc
Contents?: true
Size: 589 Bytes
Versions: 1
Compression:
Stored size: 589 Bytes
Contents
# frozen_string_literal: true module Woodpecker class Configuration # Woodpecker API uses HTTP Basic Authentication where the token is the # username and password can be anything. Weird. attr_writer :api_key, :dummy_password def initialize @api_key = nil @dummy_password = nil end def api_key raise Errors::Configuration, 'Woodpecker API key missing!' unless @api_key @api_key end def dummy_password raise Errors::Configuration, 'Dummy password is missing!' unless @dummy_password @dummy_password end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
woodpecker-0.1.3 | lib/woodpecker/configuration.rb |