module Uatu::Configuration

Constants

PRIVATE_KEY
PUBLIC_KEY
VALID_CONFIG_KEYS

Public Class Methods

extended(base) click to toggle source
# File lib/uatu/configuration.rb, line 11
def self.extended(base)
  base.reset
end

Public Instance Methods

configure() { |self| ... } click to toggle source
# File lib/uatu/configuration.rb, line 15
def configure
  yield self
end
credentials() click to toggle source
# File lib/uatu/configuration.rb, line 19
def credentials
  Hash[ * VALID_CONFIG_KEYS.map { |key| [key, send(key)] }.flatten ]
end
reset() click to toggle source
# File lib/uatu/configuration.rb, line 23
def reset
  self.public_key   = PUBLIC_KEY
  self.private_key  = PRIVATE_KEY
end