class Stax::Examples::VpcGenerator
Attributes
cidr_block[RW]
subnets[RW]
Public Instance Methods
add_to_staxfile()
click to toggle source
# File lib/generators/vpc/vpc_generator.rb, line 17 def add_to_staxfile append_to_file 'Staxfile', "stack :#{options[:stack]}" end
create_vpc_files()
click to toggle source
# File lib/generators/vpc/vpc_generator.rb, line 11 def create_vpc_files @cidr_block = ask('cidr block for vpc?', default: '10.0.0.0/16') @subnets = ask('number of subnets to create?', default: '3') directory '.', 'cf' end
Private Instance Methods
stack_name()
click to toggle source
# File lib/generators/vpc/vpc_generator.rb, line 23 def stack_name options[:stack] end