Class: DPL::Provider::BluemixCloudFoundry

Inherits:
CloudFoundry show all
Defined in:
lib/dpl/provider/bluemix_cloud_foundry.rb

Constant Summary collapse

REGIONS =
Hash.new {"api.ng.bluemix.net"}.update(
  "eu-gb" => "api.eu-gb.bluemix.net",
  "eu-de" => "api.eu-de.bluemix.net",
  "au-syd" => "api.au-syd.bluemix.net"
)

Instance Attribute Summary

Attributes inherited from DPL::Provider

#context, #options

Instance Method Summary collapse

Methods inherited from CloudFoundry

#check_app, #cleanup, #initial_go_tools_install, #manifest, #needs_key?, #push_app, #uncleanup

Methods inherited from DPL::Provider

apt_get, #check_app, #cleanup, #commit_msg, context, #create_key, #default_text_charset, #default_text_charset?, #deploy, deprecated, #detect_encoding?, #encoding_for, #error, experimental, #initialize, #log, #needs_key?, new, npm_g, #option, pip, requires, #run, #setup_git_credentials, #setup_git_ssh, #sha, shell, #uncleanup, #user_agent, #warn

Constructor Details

This class inherits a constructor from DPL::Provider

Instance Method Details

#check_authObject



16
17
18
19
# File 'lib/dpl/provider/bluemix_cloud_foundry.rb', line 16

def check_auth
  set_api
  super
end

#set_apiObject



11
12
13
14
# File 'lib/dpl/provider/bluemix_cloud_foundry.rb', line 11

def set_api
  region = options[:region] || "ng"
  options[:api] = options[:api] || REGIONS[region]
end