lib/aws-sdk-autoscaling/fleet_collection.rb
def create name, template_group
      raise ArgumentError, "Fleet #{name} already exists" if @resource.fleet(name).exists?
      raise ArgumentError, "Group is already in a fleet" if template_group.fleet

      template_group.set_fleet(name, "template")
      @resource.fleet(name)
    end
# Create an ASG Fleet.
#
# To create a Fleet, you must supply an already-constructed
# Auto Scaling group to be used as the template for new groups
# added to the fleet.
#
#     fleet = auto_scaling.fleets.create('fleet-name',
#         auto_scaling.groups['my-asg-group'])
#
# @param [String] name The name of the new fleet to create.
#   Must be unique in your account.
#
# @param [Group] group The group to be used as a template
#   for future groups and fleet changes.
#
# @return [Fleet]
#
Create an ASG Fleet.
To create a Fleet, you must supply an already-constructed
Auto Scaling group to be used as the template for new groups
added to the fleet.


Create an ASG Fleet . To create a Fleet you must supply an already - constructed Auto Scaling group to be used as the template for new groups added to the fleet .
def create name, template_group
      raise ArgumentError, "Fleet #{name} already exists" if @resource.fleet(name).exists?
      raise ArgumentError, "Group is already in a fleet" if template_group.fleet
      template_group.set_fleet(name, "template")
      @resource.fleet(name)
    end
def create name , template_group raise ArgumentError , "Fleet #{name} already exists" if @resource . fleet ( name ) . exists? raise ArgumentError , "Group is already in a fleet" if template_group . fleet template_group . set_fleet ( name , "template" ) @resource . fleet ( name ) end
Create an ASG Fleet.
Create an ASG Fleet .
None
Fleet
name
template_group
group The group to be used as a template for future groups and fleet changes.
group The group to be used as a template for future groups and fleet changes .