Class: Bosh::AwsCloud::ManualNetwork
- Defined in:
- lib/cloud/aws/manual_network.rb
Instance Attribute Summary collapse
-
#subnet ⇒ Object
readonly
Returns the value of attribute subnet.
Instance Method Summary collapse
- #configure(ec2, instance) ⇒ Object
-
#initialize(name, spec) ⇒ ManualNetwork
constructor
create manual network.
- #private_ip ⇒ Object
Methods included from Helpers
#cloud_error, #default_ephemeral_disk_mapping, #ebs_ephemeral_disk_mapping, #extract_security_groups
Constructor Details
#initialize(name, spec) ⇒ ManualNetwork
create manual network
11 12 13 14 15 16 17 |
# File 'lib/cloud/aws/manual_network.rb', line 11 def initialize(name, spec) super if @cloud_properties.nil? || !@cloud_properties.has_key?("subnet") raise Bosh::Clouds::CloudError, "subnet required for manual network" end @subnet = @cloud_properties["subnet"] end |
Instance Attribute Details
#subnet ⇒ Object (readonly)
Returns the value of attribute subnet.
6 7 8 |
# File 'lib/cloud/aws/manual_network.rb', line 6 def subnet @subnet end |
Instance Method Details
#configure(ec2, instance) ⇒ Object
23 24 |
# File 'lib/cloud/aws/manual_network.rb', line 23 def configure(ec2, instance) end |
#private_ip ⇒ Object
19 20 21 |
# File 'lib/cloud/aws/manual_network.rb', line 19 def private_ip @ip end |