Class: CfInternetGateway
- Inherits:
-
Object
show all
- Includes:
- CfBase
- Defined in:
- lib/cf_factory/vpc/cf_internet_gateway.rb
Instance Method Summary
collapse
Methods included from CfBase
#generate_ref, #get_deletion_policy, #get_name, #hash_to_string, #retrieve_attribute, #set_meta_data, #set_quotes, #set_tags
Constructor Details
Returns a new instance of CfInternetGateway.
7
8
9
10
|
# File 'lib/cf_factory/vpc/cf_internet_gateway.rb', line 7
def initialize(name, vpn)
@name = name
@vpn = vpn
end
|
Instance Method Details
#generate ⇒ Object
24
25
26
27
28
|
# File 'lib/cf_factory/vpc/cf_internet_gateway.rb', line 24
def generate
result = super
result += CfAttachGateway.new("Attach#{@name}", @vpn, self).generate
result
end
|
#get_cf_attributes ⇒ Object
16
17
18
|
# File 'lib/cf_factory/vpc/cf_internet_gateway.rb', line 16
def get_cf_attributes
{}
end
|
#get_cf_properties ⇒ Object
20
21
22
|
# File 'lib/cf_factory/vpc/cf_internet_gateway.rb', line 20
def get_cf_properties
{}
end
|
#get_cf_type ⇒ Object
12
13
14
|
# File 'lib/cf_factory/vpc/cf_internet_gateway.rb', line 12
def get_cf_type
"AWS::EC2::InternetGateway"
end
|