disabled
  "   	ˆl–äY>”ÊeJuA3pÜjbÑ¿ÅƒoÀÃ     	# Copyright 2013 Eucalyptus Systems, Inc.
#
# Redistribution and use of this software in source and binary forms,
# with or without modification, are permitted provided that the following
# conditions are met:
#
#   Redistributions of source code must retain the above copyright notice,
#   this list of conditions and the following disclaimer.
#
#   Redistributions in binary form must reproduce the above copyright
#   notice, this list of conditions and the following disclaimer in the
#   documentation and/or other materials provided with the distribution.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

import argparse
from euca2ools.commands.autoscaling import AutoScalingRequest
from requestbuilder import Arg


class DeleteAutoScalingGroup(AutoScalingRequest):
    DESCRIPTION = 'Delete an auto-scaling group'
    ARGS = [Arg('AutoScalingGroupName', metavar='ASGROUP',
                help='name of the auto-scaling group to delete (required)'),
            Arg('-d', '--force-delete', dest='ForceDelete',
                action='store_const', const='true',
                help='''delete the group and all of its instances without
                waiting for all instances to terminate'''),
            Arg('-f', '--force', action='store_true', route_to=None,
                help=argparse.SUPPRESS)]  # for compatibility
  "   ˆl–ßi~”ÊC]Šq@»p.\Å£Æƒd!ÁÄ '    ó
™‚Mc           @   s=   d  Z  d d l Z d d l Z d g Z d Z e d „ Z d S(   s¿   Writing of files in the ``gettext`` MO (machine object) format.

:since: version 0.9
:see: `The Format of MO Files
       <http://www.gnu.org/software/gettext/manual/gettext.html#MO-Files>`_
iÿÿÿÿNt   write_mos   restructuredtext enc      
   C   s¬  t  | ƒ } | s? g  | d D] } | j s | ^ q | d )n  | j ƒ  d } } g  } xp| D]h} | j r0d j g  | j D] }	 |	 j | j ƒ ^ q ƒ }	 g  }
 xV t | j	 ƒ D]E \ } } | sî |
 j
 | j t t | ƒ d ƒ ƒ q¶ |
 j
 | ƒ q¶ Wd j g  |
 D] } | j | j ƒ ^ qƒ } nK | j j | j ƒ }	 | j	 sf| j j | j ƒ } n | j	 j | j ƒ } | j
 t | ƒ t |	 ƒ t | ƒ t | ƒ f ƒ | |	 d 7} | | d 7} q` Wd d t | ƒ } | t | ƒ } g  } g  } xB | D]: \ } } } } | | | | g 7} | | | | g 7} qW| | } |  j t j d d d	 t | ƒ d d t | ƒ d
 d	 d	 ƒ t j d | ƒ j ƒ  | | ƒ d S(   s¶  Write a catalog to the specified file-like object using the GNU MO file
    format.
    
    >>> from babel.messages import Catalog
    >>> from gettext import GNUTranslations
    >>> from StringIO import StringIO
    
    >>> catalog = Catalog(locale='en_US')
    >>> catalog.add('foo', 'Voh')
    >>> catalog.add((u'bar', u'baz'), (u'Bahr', u'Batz'))
    >>> catalog.add('fuz', 'Futz', flags=['fuzzy'])
    >>> catalog.add('Fizz', '')
    >>> catalog.add(('Fuzz', 'Fuzzes'), ('', ''))
    >>> buf = StringIO()
    
    >>> write_mo(buf, catalog)
    >>> buf.seek(0)
    >>> translations = GNUTranslations(fp=buf)
    >>> translations.ugettext('foo')
    u'Voh'
    >>> translations.ungettext('bar', 'baz', 1)
    u'Bahr'
    >>> translations.ungettext('bar', 'baz', 2)
    u'Batz'
    >>> translations.ugettext('fuz')
    u'fuz'
    >>> translations.ugettext('Fizz'