Class: Bosh::Bootstrap::NetworkProviders::OpenStack
- Inherits:
-
Object
- Object
- Bosh::Bootstrap::NetworkProviders::OpenStack
- Defined in:
- lib/bosh-bootstrap/network_providers/openstack.rb
Instance Attribute Summary collapse
-
#provider_client ⇒ Object
readonly
Returns the value of attribute provider_client.
Instance Method Summary collapse
-
#initialize(provider_client) ⇒ OpenStack
constructor
A new instance of OpenStack.
- #perform ⇒ Object
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_client ⇒ Object (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
#perform ⇒ Object
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 |