lib/cfgen.rb
def prepare_all
      @vpc_output = prepare_vpc(@vpc, @config["vpc_name"], @config["vpc_ip"])
      @subnet_output = prepare_subnet(@subnet, @config["vpc_name"], @config["vpc_ip"], @config["subnet_cidr"], @config["az_list"])
      @s3bucket_output = prepare_s3(@bucket)
      @ec2_output = prepare_ec2(@ec2, "Subnet1", @config["vpc_name"], "LatestAmiId", @config["ssh_ip"], @config["instance_type"])
    end
# This method orchestrates each single template creation and stores as output
This method orchestrates each single template creation and stores as output
This method orchestrates each single template creation and stores as output
def prepare_all
      @vpc_output = prepare_vpc(@vpc, @config["vpc_name"], @config["vpc_ip"])
      @subnet_output = prepare_subnet(@subnet, @config["vpc_name"], @config["vpc_ip"], @config["subnet_cidr"], @config["az_list"])
      @s3bucket_output = prepare_s3(@bucket)
      @ec2_output = prepare_ec2(@ec2, "Subnet1", @config["vpc_name"], "LatestAmiId", @config["ssh_ip"], @config["instance_type"])
    end
def prepare_all @vpc_output = prepare_vpc ( @vpc , @config [ "vpc_name" ] , @config [ "vpc_ip" ] ) @subnet_output = prepare_subnet ( @subnet , @config [ "vpc_name" ] , @config [ "vpc_ip" ] , @config [ "subnet_cidr" ] , @config [ "az_list" ] ) @s3bucket_output = prepare_s3 ( @bucket ) @ec2_output = prepare_ec2 ( @ec2 , "Subnet1" , @config [ "vpc_name" ] , "LatestAmiId" , @config [ "ssh_ip" ] , @config [ "instance_type" ] ) end
This method orchestrates each single template creation and stores as output
This method orchestrates each single template creation and stores as output