Class: Bosh::Bootstrap::NetworkProviders::OpenStack

Inherits:
Object
  • Object
show all
Defined in:
lib/bosh-bootstrap/network_providers/openstack.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(provider_client) ⇒ OpenStack

Returns a new instance of OpenStack.



5
6
7
# File 'lib/bosh-bootstrap/network_providers/openstack.rb', line 5

def initialize(provider_client)
  @provider_client = provider_client
end

Instance Attribute Details

#provider_clientObject (readonly)

Returns the value of attribute provider_client.



3
4
5
# File 'lib/bosh-bootstrap/network_providers/openstack.rb', line 3

def provider_client
  @provider_client
end

Instance Method Details

#performObject



9
10
11
12
13
# File 'lib/bosh-bootstrap/network_providers/openstack.rb', line 9

def perform
  security_groups.each do |name, ports|
    provider_client.create_security_group(name.to_s, name.to_s, ports: ports)
  end
end