Method: KnifeCloudstack::CsStackCreate#connection

Defined in:
lib/chef/knife/cs_stack_create.rb

#connectionObject



88
89
90
91
92
93
94
95
96
# File 'lib/chef/knife/cs_stack_create.rb', line 88

def connection
  if (!@connection) then
    url = locate_config_value(:cloudstack_url)
    api_key = locate_config_value(:cloudstack_api_key)
    secret_key = locate_config_value(:cloudstack_secret_key)
    @connection = CloudstackClient::Connection.new(url, api_key, secret_key)
  end
  @connection
end