Class: Bosh::AwsCloud::Network
- Inherits:
-
Object
- Object
- Bosh::AwsCloud::Network
- Includes:
- Helpers
- Defined in:
- lib/cloud/aws/network.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#configure(ec2, instance) ⇒ Object
Configures given instance.
-
#initialize(name, spec) ⇒ Network
constructor
Creates a new network.
Methods included from Helpers
#cloud_error, #extract_security_group_names
Constructor Details
#initialize(name, spec) ⇒ Network
Creates a new network
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/cloud/aws/network.rb', line 14 def initialize(name, spec) unless spec.is_a?(Hash) raise ArgumentError, "Invalid spec, Hash expected, " \ "#{spec.class} provided" end @logger = Bosh::Clouds::Config.logger @name = name @ip = spec["ip"] @cloud_properties = spec["cloud_properties"] end |
Instance Method Details
#configure(ec2, instance) ⇒ Object
Configures given instance
32 33 34 |
# File 'lib/cloud/aws/network.rb', line 32 def configure(ec2, instance) cloud_error("`configure' not implemented by #{self.class}") end |