Method: Prof::CloudFoundry#initialize

Defined in:
lib/prof/cloud_foundry.rb

#initialize(opts = {}) ⇒ CloudFoundry

Returns a new instance of CloudFoundry.



46
47
48
49
50
51
52
53
54
55
56
# File 'lib/prof/cloud_foundry.rb', line 46

def initialize(opts = {})
  @domain   = opts.fetch(:domain)
  @api_url  = opts.fetch(:api_url) { "https://api.#{domain}" }
  @username = opts.fetch(:username)
  @password = opts.fetch(:password)

  @retry_interval = opts.fetch(:retry_interval) { 5 }
  @retry_timeout  = opts.fetch(:retry_timeout)  { 720 }

  @hula_cloud_foundry = opts.fetch(:hula_cloud_foundry) if opts.key?(:hula_cloud_foundry)
end