Sha256: 8061012ae642b04abc3cec2072f954de12f6a6e00f4d0fdb9dd60ff6d06048cf
Contents?: true
Size: 558 Bytes
Versions: 3
Compression:
Stored size: 558 Bytes
Contents
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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
woodpecker-0.1.2 | lib/woodpecker/configuration.rb |
woodpecker-0.1.1 | lib/woodpecker/configuration.rb |
woodpecker-0.1.0 | lib/woodpecker/configuration.rb |