class ConcourseObjects::Resources::CFZeroDowntime::Source

Constants

DEFAULT_SKIP_CERT_CHECK
DEFAULT_VERBOSE

Public Class Methods

new(options = {}) { |this, options| ... } click to toggle source
Calls superclass method ConcourseObjects::Object::new
# File lib/concourse-objects/resources/cf-zero-downtime.rb, line 29
def initialize(options = {})
  super(options) do |this, options|
    raise KeyError, "#{self.class.inspect} requires one of ((username, password), (client_id, client_secret))" unless ((this.username? and this.password?) or (this.client_id? and this.client_secret?))

    yield this, options if block_given?
  end
end