Module Import alias Import alias Import alias Import alias Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ImportFrom alias ClassDef bases body Expr Str Assign NameStore Str Assign NameStore NameStore BinOpAdd BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Str Assign NameStore NameStore BinOpAdd BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad AttributeLoad NameLoad attr Str Assign NameStore BinOpAdd BinOpAdd BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Str AttributeLoad NameLoad attr Assign NameStore Str Assign NameStore Str FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Expr Str Return BinOpAdd BinOpAdd Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str TryExcept body With Call NameLoad Call AttributeLoad NameLoad attr NameStore body Return Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Raise Call NameLoad BinOpAdd BinOpAdd Str Str Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore BinOpAdd BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Str Assign NameStore BinOpAdd BinOpAdd BinOpAdd BinOpAdd NameLoad AttributeLoad NameLoad attr Str NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str TryExcept body With Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameStore body Return Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For NameStore NameLoad body If CompareIn Str SubscriptLoad NameLoad Index Str body Return SubscriptLoad NameLoad Index Str Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore BinOpAdd BinOpAdd Call AttributeLoad AttributeLoad NameLoad attr attr Str AttributeLoad NameLoad attr Str Assign NameStore BinOpAdd BinOpAdd BinOpAdd NameLoad AttributeLoad NameLoad attr NameLoad Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr If Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Raise Call NameLoad BinOpAdd BinOpAdd Str Str Str If CompareEq NameLoad Str body Assign NameStore AttributeLoad NameLoad attr orelse If CompareEq NameLoad Str body Assign NameStore AttributeLoad NameLoad attr orelse Raise Call NameLoad BinOpAdd BinOpAdd Str Str Str Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad If UnaryOpNot Call AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIn Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str If CompareIn Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str If CompareIn Str NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str If UnaryOpNot CompareIn Str NameLoad body If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad body Assign NameStore ListLoad If CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad Call NameLoad NameLoad Str attr Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If CompareIn NameLoad ListLoad Str Str Str body Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Continue If CompareIs NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpMod Str NameLoad orelse If CompareIs NameLoad NameLoad body Pass orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad orelse If CompareEq NameLoad Str body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad orelse Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpMod Str NameLoad Expr Call AttributeLoad NameLoad attr Call NameLoad BinOpMod Str NameLoad Assign NameStore AttributeLoad Call NameLoad NameLoad Str attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore SubscriptLoad NameLoad Index Str Assign NameStore Call AttributeLoad NameLoad attr Str NameLoad If UnaryOpNot Call NameLoad SubscriptLoad NameLoad Index Str NameLoad body Raise Call NameLoad Str Assign NameStore BinOpAdd BinOpAdd AttributeLoad NameLoad attr NameLoad Str If UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str For NameStore NameLoad body If UnaryOpNot Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad body Return NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore ListLoad For TupleStore NameStore NameStore Call AttributeLoad NameLoad attr body If Call NameLoad NameLoad NameLoad body If UnaryOpNot CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad orelse If Call NameLoad NameLoad NameLoad body For NameStore NameLoad body If UnaryOpNot CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str TryExcept body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad Str NameLoad keyword Str Return NameLoad handlers ExceptHandler type NameLoad body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad Str If CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str orelse Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryExcept body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str handlers ExceptHandler type NameLoad body Raise Call NameLoad BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str Call NameLoad NameLoad Str Call NameLoad Call NameLoad NameLoad Str Assign NameStore ListLoad Str Str Str Str Call AttributeLoad NameLoad attr NameLoad BinOpAdd Str NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Assign NameStore AttributeLoad Call NameLoad NameLoad Str attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str If CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr Str If BoolOpAnd CompareIn Str NameLoad CompareEq SubscriptLoad NameLoad Index Str NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad Call NameLoad NameLoad Str attr Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str If BoolOpAnd CompareIn Str NameLoad CompareEq SubscriptLoad NameLoad Index Str NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad Call NameLoad NameLoad Str attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad If CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad Call NameLoad NameLoad Str attr Return Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad If CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad Call NameLoad NameLoad Str attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryExcept body Assign NameStore Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Raise Call NameLoad BinOpAdd Str Str If CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str orelse Assign NameStore Str TryExcept body With Call NameLoad Call AttributeLoad NameLoad attr NameLoad NameStore body Assign NameStore Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Raise Call NameLoad BinOpAdd Str Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad TryExcept body Assign NameStore SubscriptLoad SubscriptLoad NameLoad Index NameLoad Index Str handlers ExceptHandler type NameLoad body Raise Call NameLoad BinOpAdd BinOpAdd BinOpAdd BinOpAdd Str Call NameLoad NameLoad Str Call NameLoad Call NameLoad NameLoad Str Assign NameStore Call AttributeLoad Str attr NameLoad Assign NameStore ListLoad Str Str Str Str Call AttributeLoad NameLoad attr NameLoad BinOpAdd Str NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad If CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Assign NameStore AttributeLoad Call NameLoad NameLoad Str attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore ListLoad If CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr Call NameLoad NameLoad Assign NameStore AttributeLoad Call NameLoad NameLoad Str attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore ListLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIn Str NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index Str SubscriptLoad NameLoad Index Str If CompareIn Str NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index Str SubscriptLoad NameLoad Index Str If CompareIn Str NameLoad body Assign SubscriptStore AttributeLoad NameLoad attr Index Str SubscriptLoad NameLoad Index Str If CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str If BoolOpAnd CompareIn Str NameLoad CompareEq SubscriptLoad NameLoad Index Str NameLoad body Expr Call AttributeLoad NameLoad attr Str If BoolOpAnd CompareIn Str NameLoad CompareEq SubscriptLoad NameLoad Index Str NameLoad body Expr Call AttributeLoad NameLoad attr Str Assign NameStore AttributeLoad Call NameLoad NameLoad Str attr Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareNotIn Str NameLoad body Raise Call NameLoad Str If BoolOpAnd CompareIn Str NameLoad CompareEq SubscriptLoad NameLoad Index Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str orelse Assign NameStore NameLoad If CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str orelse Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr SubscriptLoad NameLoad Index Str If BoolOpOr CompareNotIn Str NameLoad CompareNotEq SubscriptLoad NameLoad Index Str NameLoad body Expr Call AttributeLoad NameLoad attr For NameStore NameLoad body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call AttributeLoad NameLoad attr Call AttributeLoad NameLoad attr If CompareIn Str NameLoad body Assign NameStore SubscriptLoad NameLoad Index Str orelse Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad Assign NameStore Call AttributeLoad NameLoad attr NameLoad If Call AttributeLoad NameLoad attr NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad If CompareNotEq NameLoad NameLoad body Raise Call NameLoad Str If CompareIn Str NameLoad body Assign NameStore Str orelse Assign NameStore Str Assign NameStore Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Call AttributeLoad Str attr SubscriptLoad NameLoad Index Str decorator_list decorator_list
N/A N/A base64 N/A json N/A os N/A shutil N/A subprocess N/A yaml appscale_logger AppScaleLogger custom_exceptions AppScaleException custom_exceptions AppScalefileException custom_exceptions BadConfigurationException custom_exceptions ShellException appscale_tools AppScaleTools local_state LocalState parse_args ParseArgs remote_helper RemoteHelper registration_helper RegistrationHelper AppScale N/A N/A N/A  AppScale provides a configuration-file-based alternative to the
  command-line interface that the AppScale Tools require.  N/A APPSCALEFILE AppScalefile N/A TEMPLATE_CLOUD_APPSCALEFILE path N/A N/A N/A N/A N/A os path dirname __file__ N/A os sep ../templates/AppScalefile-cloud N/A TEMPLATE_CLUSTER_APPSCALEFILE path N/A N/A N/A N/A N/A os path dirname __file__ N/A os sep ../templates/AppScalefile-cluster N/A APPSCALE_DIRECTORY N/A N/A N/A N/A N/A N/A os path expanduser ~ N/A os sep .appscale N/A os sep N/A TERMINATE ruby /root/appscale/AppController/terminate.rb clean N/A USAGE Usage: appscale command [<args>]

Available commands:
  clean                             Forcefully terminates the AppScale
                                    deployment and delete all data. ALL
                                    DATA WILL BE DELETED.
  deploy <app>                      Deploys a Google App Engine app to AppScale:
                                    <app> can be the top level directory with the
                                    code or a tar.gz of the source tree.
  destroy                           Gracefully terminates the currently
                                    running AppScale deployment.
  down                              An alias for 'destroy'.
  get <regex>                       Gets all AppController properties matching
                                    the provided regex: for developers only.
  help                              Displays this message.
  init <cloud|cluster>              Writes a new configuration file for
                                    AppScale: it will use the <cloud> or
                                    <cluster> template. Won't override
                                    an existing configuration.
  logs <dir>                        Collects the logs produced by an AppScale
                                    deployment into a directory <dir>: the
                                    directory will be created.
  register <deployment_id>          Registers an AppScale deployment with the
                                    AppScale Portal.
  relocate <appid> <http> <https>   Moves the application <appid> to
                                    different <http> and <https> ports.
  remove                            An alias for 'undeploy'.
  set <property> <value>            Sets an AppController <property> to the
                                    provided <value>. For developers only.
  ssh [#]                           Logs into the #th node of the current AppScale
                                    deployment. Default is headnode (0).
  status                            Reports on the state of a currently
                                    running AppScale deployment.
  tail                              Follows the output of log files of an
                                    AppScale deployment.
  up                                Starts the AppScale deployment (requires
                                    an AppScalefile).
  undeploy <appid>                  Removes <appid> from the current
                                    deployment. DATA ASSOCIATED WITH
                                    THE APPLICATION WILL BE LOST.
 __init__ N/A N/A self N/A N/A N/A N/A get_appscalefile_location N/A N/A self N/A N/A N/A  Constructs a string that corresponds to the location of the
    AppScalefile for this deployment.
    
    Returns:
      The location where the user's AppScalefile can be found.
     N/A N/A N/A N/A N/A os getcwd N/A os sep N/A self APPSCALEFILE N/A read_appscalefile N/A N/A self N/A N/A N/A  Checks the local directory for an AppScalefile and reads its
    contents.

    Raises:
      AppScalefileException: If there is no AppScalefile in the
        local directory.
    Returns:
      The contents of the AppScalefile in the current working directory.
     N/A N/A N/A N/A open N/A N/A self get_appscalefile_location file_handle N/A N/A N/A N/A file_handle read N/A N/A N/A IOError N/A N/A N/A AppScalefileException N/A N/A No AppScalefile found in this  directory. Please run 'appscale init' to generate one and try  again. N/A get_locations_json_file N/A N/A self keyname N/A N/A N/A  Returns the location where the AppScale tools writes JSON data
    about where each virtual machine is located in the currently running
    AppScale deployment.

    Args:
      keyname: The name of the AppScale deployment to find the JSON filename
        for.
    Returns:
      The path on the local filesystem where the locations.json file can be
        found.
     N/A appscale_dir N/A N/A N/A N/A N/A os path expanduser ~ N/A os sep .appscale N/A json_file N/A N/A N/A N/A appscale_dir N/A os sep locations- keyname .json N/A json_file N/A get_nodes N/A N/A self keyname N/A N/A N/A  Retrieve a list of the running nodes.

    Args:
      keyname: An identifier for the AppScale deployment.
    Returns:
      A list of nodes in the running AppScale deployment.
    Raises:
      AppScaleException: If there is no locations JSON file.
     N/A N/A N/A N/A open N/A N/A self get_locations_json_file keyname locations_file N/A N/A N/A N/A json loads N/A N/A locations_file read N/A N/A N/A IOError N/A N/A N/A AppScaleException AppScale does not currently appear to be running. Please start it and try again. N/A get_head_node N/A N/A self nodes N/A N/A N/A  Retrieve a node with the 'shadow' role.

    Args:
      nodes: A list of nodes in the running AppScale deployment.
    Returns:
      A string containing the IP address of the head node.
     N/A node nodes N/A N/A N/A shadow N/A node N/A jobs N/A N/A N/A node N/A public_ip N/A N/A AppScaleException Unable to find head node. N/A get_key_location N/A N/A self keyname N/A N/A N/A  Returns the location where the AppScale tools places an SSH key that
    can be used to log into any virtual machine in the currently running
    AppScale deployment.

    Args:
      keyname: The name of the AppScale deployment to find the SSH key for.

    Returns:
      The path on the local filesystem where the SSH key can be found.
     N/A appscale_dir N/A N/A N/A N/A N/A os path expanduser ~ N/A os sep .appscale N/A key_file N/A N/A N/A appscale_dir N/A os sep keyname .key N/A key_file N/A init N/A N/A self environment N/A N/A N/A  Writes an AppScalefile in the local directory, that contains common
    configuration parameters.

    Args:
      environment: A str that indicates whether the AppScalefile to write should
      be tailed to a 'cloud' environment or a 'cluster' environment.

    Raises:
      AppScalefileException: If there already is an AppScalefile in the local
      directory.
     N/A appscalefile_location N/A N/A self get_appscalefile_location N/A N/A N/A N/A os path exists appscalefile_location N/A N/A N/A AppScalefileException N/A N/A There is already an AppScalefile  in this directory. Please remove it and run 'appscale init'  again to generate a new AppScalefile. N/A N/A environment cloud N/A N/A template_file N/A self TEMPLATE_CLOUD_APPSCALEFILE N/A N/A N/A environment cluster N/A N/A template_file N/A self TEMPLATE_CLUSTER_APPSCALEFILE N/A N/A N/A BadConfigurationException N/A N/A The environment you specified  was invalid. Valid environments are 'cloud' and  'cluster'. N/A N/A N/A shutil copy template_file appscalefile_location N/A up N/A N/A self N/A N/A N/A  Starts an AppScale deployment with the configuration options from the
    AppScalefile in the current directory.

    Raises:
      AppScalefileException: If there is no AppScalefile in the current
      directory.
     N/A contents N/A N/A self read_appscalefile N/A contents_as_yaml N/A N/A yaml safe_load contents N/A N/A N/A N/A LocalState ensure_appscalefile_is_up_to_date N/A N/A contents N/A N/A self read_appscalefile N/A contents_as_yaml N/A N/A yaml safe_load contents N/A N/A ips_layout contents_as_yaml N/A N/A ips_layout N/A N/A base64 b64encode N/A N/A yaml dump N/A contents_as_yaml N/A ips_layout N/A N/A disks contents_as_yaml N/A N/A disks N/A N/A base64 b64encode N/A N/A yaml dump N/A contents_as_yaml N/A disks N/A N/A user_commands contents_as_yaml N/A N/A user_commands N/A N/A base64 b64encode N/A N/A yaml dump N/A contents_as_yaml N/A user_commands N/A N/A N/A infrastructure contents_as_yaml N/A N/A N/A N/A N/A self valid_ssh_key contents_as_yaml N/A N/A add_keypair_command N/A N/A N/A keyname contents_as_yaml N/A N/A N/A N/A add_keypair_command append --keyname N/A N/A N/A add_keypair_command append N/A str N/A contents_as_yaml N/A keyname N/A N/A N/A add_keypair_command append --ips_layout N/A N/A N/A add_keypair_command append ips_layout N/A options N/A N/A ParseArgs add_keypair_command appscale-add-keypair args N/A N/A N/A AppScaleTools add_keypair options N/A command N/A N/A N/A key value N/A N/A contents_as_yaml items N/A N/A N/A key N/A EC2_ACCESS_KEY EC2_SECRET_KEY EC2_URL N/A N/A N/A N/A os environ N/A key value N/A N/A N/A value True N/A N/A N/A N/A command append N/A str N/A --%s key N/A N/A N/A value False N/A N/A N/A N/A N/A key ips_layout N/A N/A N/A N/A command append --ips_layout N/A N/A N/A command append ips_layout N/A N/A N/A key disks N/A N/A N/A N/A command append --disks N/A N/A N/A command append disks N/A N/A N/A key user_commands N/A N/A N/A N/A command append --user_commands N/A N/A N/A command append user_commands N/A N/A N/A N/A command append N/A str N/A --%s key N/A N/A N/A command append N/A str N/A %s value N/A options N/A N/A ParseArgs command appscale-run-instances args N/A N/A N/A AppScaleTools run_instances options N/A valid_ssh_key N/A N/A self config N/A N/A N/A  Determines whether or not we should call appscale-add-keypair, by
    collecting all the IP addresses in the given IPs layout and attempting to
    SSH to each of them with the specified keyname.

    Args:
      config: A dictionary that includes the IPs layout (which itself is a dict
        mapping role names to IPs) and, optionally, the keyname to use.

    Returns:
      A bool indicating whether or not the specified keyname can be used to log
      into each IP address without a password.

    Raises:
      BadConfigurationException: If the IPs layout was not a dictionary.
     N/A keyname N/A config N/A keyname N/A verbose N/A N/A config get verbose False N/A N/A N/A isinstance N/A config N/A ips_layout dict N/A N/A N/A BadConfigurationException ips_layout should be a dictionary. Please fix it and try again. N/A ssh_key_location N/A N/A N/A self APPSCALE_DIRECTORY keyname .key N/A N/A N/A N/A N/A os path exists ssh_key_location N/A N/A False N/A all_ips N/A N/A self get_all_ips N/A config N/A ips_layout N/A ip all_ips N/A N/A N/A N/A N/A self can_ssh_to_ip ip keyname verbose N/A N/A False N/A True N/A get_all_ips N/A N/A self ips_layout N/A N/A N/A  Searches through the given IPs layout and finds all the unique IP
    addresses.

    Args:
      ips_layout: A dict that maps AppScale roles to either an IP address or a
        list of IP addresses that host that role.
    Returns:
      A list containing all of the IP addresses in the IPs layout, without
        duplicates.
     N/A all_ips N/A N/A N/A _ ip_or_ips N/A N/A ips_layout items N/A N/A N/A isinstance ip_or_ips str N/A N/A N/A N/A ip_or_ips all_ips N/A N/A N/A N/A all_ips append ip_or_ips N/A N/A N/A isinstance ip_or_ips list N/A N/A ip ip_or_ips N/A N/A N/A N/A ip all_ips N/A N/A N/A N/A all_ips append ip N/A all_ips N/A can_ssh_to_ip N/A N/A self ip keyname is_verbose N/A N/A N/A  Attempts to SSH into the machine located at the given IP address with the
    given SSH key.

    Args:
      ip: The IP address to attempt to SSH into.
      keyname: The name of the SSH key that uniquely identifies this AppScale
        deployment.
      is_verbose: A bool that indicates if we should print the SSH command we
        execute to stdout.

    Returns:
      A bool that indicates whether or not the given SSH key can log in without
      a password to the given machine.
     N/A N/A N/A N/A N/A RemoteHelper ssh ip keyname ls is_verbose user root N/A True N/A N/A N/A ShellException N/A N/A False N/A ssh N/A N/A self node N/A N/A N/A  'ssh' provides a simple way to log into virtual machines in an AppScale
    deployment, using the SSH key provided in the user's AppScalefile.

    Args:
      node: An int that represents the node to SSH to. The value is used as an
        index into the list of nodes running in the AppScale deployment,
        starting with zero.
    Raises:
      AppScalefileException: If there is no AppScalefile in the current
        directory.
      TypeError: If the user does not provide an integer for 'node'.
     N/A contents N/A N/A self read_appscalefile N/A contents_as_yaml N/A N/A yaml safe_load contents N/A N/A N/A index N/A int node N/A N/A N/A ValueError N/A N/A N/A TypeError Usage: appscale ssh <node id to ssh to> N/A N/A keyname contents_as_yaml N/A N/A keyname N/A contents_as_yaml N/A keyname N/A N/A keyname appscale N/A nodes N/A N/A self get_nodes keyname N/A N/A N/A ip N/A N/A nodes N/A index N/A public_ip N/A N/A N/A IndexError N/A N/A N/A AppScaleException N/A N/A N/A N/A Cannot ssh to node at index  N/A str index , as there are only  N/A str N/A len nodes  in the currently running AppScale deployment. N/A command N/A ssh -o StrictHostkeyChecking=no -i N/A N/A self get_key_location keyname N/A root@ ip N/A N/A N/A subprocess call command N/A status N/A N/A self N/A N/A N/A  'status' is a more accessible way to query the state of the AppScale
    deployment than 'appscale-describe-instances', and calls it with the
    parameters in the user's AppScalefile.

    Raises:
      AppScalefileException: If there is no AppScalefile in the current
      directory.
     N/A contents N/A N/A self read_appscalefile N/A command N/A N/A contents_as_yaml N/A N/A yaml safe_load contents N/A N/A keyname contents_as_yaml N/A N/A N/A N/A command append --keyname N/A N/A N/A command append N/A contents_as_yaml N/A keyname N/A options N/A N/A ParseArgs command appscale-describe-instances args N/A N/A N/A AppScaleTools describe_instances options N/A deploy N/A N/A self app N/A N/A N/A  'deploy' is a more accessible way to tell an AppScale deployment to run a
    Google App Engine application than 'appscale-upload-app'. It calls that
    command with the configuration options found in the AppScalefile in the
    current working directory.

    Args:
      app: The path (absolute or relative) to the Google App Engine application
        that should be uploaded.
    Returns:
      A tuple containing the host and port where the application is serving
        traffic from.
    Raises:
      AppScalefileException: If there is no AppScalefile in the current working
      directory.
     N/A contents N/A N/A self read_appscalefile N/A command N/A N/A contents_as_yaml N/A N/A yaml safe_load contents N/A N/A keyname contents_as_yaml N/A N/A N/A N/A command append --keyname N/A N/A N/A command append N/A contents_as_yaml N/A keyname N/A N/A test contents_as_yaml N/A N/A N/A N/A command append --test N/A N/A N/A verbose contents_as_yaml N/A N/A contents_as_yaml N/A verbose True N/A N/A N/A N/A command append --verbose N/A N/A N/A command append --file N/A N/A N/A command append app N/A options N/A N/A ParseArgs command appscale-upload-app args N/A N/A N/A AppScaleTools upload_app options N/A undeploy N/A N/A self appid N/A N/A N/A  'undeploy' is a more accessible way to tell an AppScale deployment to
    stop hosting a Google App Engine application than 'appscale-remove-app'. It
    calls that command with the configuration options found in the AppScalefile
    in the current working directory.

    Args:
      appid: The name of the application that we should remove.
    Raises:
      AppScalefileException: If there is no AppScalefile in the current working
      directory.
     N/A contents N/A N/A self read_appscalefile N/A command N/A N/A contents_as_yaml N/A N/A yaml safe_load contents N/A N/A keyname contents_as_yaml N/A N/A N/A N/A command append --keyname N/A N/A N/A command append N/A contents_as_yaml N/A keyname N/A N/A N/A verbose contents_as_yaml N/A N/A contents_as_yaml N/A verbose True N/A N/A N/A N/A command append --verbose N/A N/A N/A command append --appname N/A N/A N/A command append appid N/A options N/A N/A ParseArgs command appscale-remove-app args N/A N/A N/A AppScaleTools remove_app options N/A get N/A N/A self property_regex N/A N/A N/A  'get' provides a cleaner experience for users than the
    appscale-get-property command, by using the configuration options present in
    the AppScalefile found in the current working directory.

    Args:
      property_regex: A regular expression indicating which AppController
        properties should be retrieved.
    Raises:
      AppScalefileException: If there is no AppScalefile in the current working
      directory.
     N/A contents N/A N/A self read_appscalefile N/A contents_as_yaml N/A N/A yaml safe_load contents N/A command N/A N/A N/A keyname contents_as_yaml N/A N/A N/A N/A command append --keyname N/A N/A N/A command append N/A contents_as_yaml N/A keyname N/A N/A N/A command append --property N/A N/A N/A command append property_regex N/A options N/A N/A ParseArgs command appscale-get-property args N/A N/A N/A AppScaleTools get_property options N/A set N/A N/A self property_name property_value N/A N/A N/A  'set' provides a cleaner experience for users than the
    appscale-set-property command, by using the configuration options present in
    the AppScalefile found in the current working directory.

    Args:
      property_name: A str naming the AppController instance variable that
        should be overwritten.
      property_value: The new value that should be used for the named property.
    Raises:
      AppScalefileException: If there is no AppScalefile in the current working
      directory.
     N/A contents N/A N/A self read_appscalefile N/A contents_as_yaml N/A N/A yaml safe_load contents N/A command N/A N/A N/A keyname contents_as_yaml N/A N/A N/A N/A command append --keyname N/A N/A N/A command append N/A contents_as_yaml N/A keyname N/A N/A N/A command append --property_name N/A N/A N/A command append property_name N/A N/A N/A command append --property_value N/A N/A N/A command append property_value N/A options N/A N/A ParseArgs command appscale-set-property args N/A N/A N/A AppScaleTools set_property options N/A tail N/A N/A self node file_regex N/A N/A N/A  'tail' provides a simple way to follow log files in an AppScale
    deployment, instead of having to ssh in to a machine, locate the logs
    directory, and then tail it.

    Args:
      node: An int that indicates the id of the machine to tail logs from.
      file_regex: The regular expression that should be used to indicate which
        logs to tail from on the remote host.
    Raises:
      AppScalefileException: If there is no AppScalefile in the current working
        directory.
      TypeError: If index is not an int.
     N/A contents N/A N/A self read_appscalefile N/A contents_as_yaml N/A N/A yaml safe_load contents N/A N/A N/A index N/A int node N/A N/A N/A ValueError N/A N/A N/A TypeError N/A Usage: appscale tail <node id to tail from>  <regex of files to tail>
Example: appscale tail 0 controller* N/A N/A keyname contents_as_yaml N/A N/A keyname N/A contents_as_yaml N/A keyname N/A N/A keyname appscale N/A N/A N/A N/A open N/A N/A self get_locations_json_file keyname f N/A N/A nodes_json_raw N/A N/A f read N/A N/A N/A IOError N/A N/A N/A AppScaleException N/A AppScale does not currently appear to  be running. Please start it and try again. N/A nodes N/A N/A json loads nodes_json_raw N/A N/A N/A ip N/A N/A nodes N/A index N/A public_ip N/A N/A N/A IndexError N/A N/A N/A AppScaleException N/A N/A N/A N/A Cannot tail from node at index  N/A str index , as there are only  N/A str N/A len nodes  in the currently running AppScale deployment. N/A tail N/A N/A tail -F /var/log/appscale/{0} format file_regex N/A command N/A ssh -o StrictHostkeyChecking=no -i N/A N/A self get_key_location keyname N/A root@ ip tail N/A N/A N/A subprocess call command N/A logs N/A N/A self location N/A N/A N/A  'logs' provides a cleaner experience for users than the
    appscale-gather-logs command, by using the configuration options present in
    the AppScalefile found in the current working directory.

    Args:
      location: The path on the local filesystem where logs should be copied to.
    Raises:
      AppScalefileException: If there is no AppScalefile in the current working
      directory.
     N/A contents N/A N/A self read_appscalefile N/A contents_as_yaml N/A N/A yaml safe_load contents N/A command N/A N/A N/A keyname contents_as_yaml N/A N/A N/A N/A command append --keyname N/A N/A N/A command append N/A contents_as_yaml N/A keyname N/A N/A N/A command append --location N/A N/A N/A command append location N/A options N/A N/A ParseArgs command appscale-gather-logs args N/A N/A N/A AppScaleTools gather_logs options N/A relocate N/A N/A self appid http_port https_port N/A N/A N/A  'relocate' provides a nicer experience for users than the
    appscale-terminate-instances command, by using the configuration options
    present in the AppScalefile found in the current working directory.

    Args:
      appid: A str indicating the name of the application to relocate.
      http_port: An int that indicates what port should serve HTTP traffic for
        this application.
      https_port: An int that indicates what port should serve HTTPS traffic for
        this application.
    Raises:
      AppScalefileException: If there is no AppScalefile in the current working
      directory.
     N/A contents N/A N/A self read_appscalefile N/A contents_as_yaml N/A N/A yaml safe_load contents N/A command N/A N/A N/A keyname contents_as_yaml N/A N/A N/A N/A command append --keyname N/A N/A N/A command append N/A contents_as_yaml N/A keyname N/A N/A N/A command append --appname N/A N/A N/A command append appid N/A N/A N/A command append --http_port N/A N/A N/A command append N/A str http_port N/A N/A N/A command append --https_port N/A N/A N/A command append N/A str https_port N/A options N/A N/A ParseArgs command appscale-relocate-app args N/A N/A N/A AppScaleTools relocate_app options N/A destroy N/A N/A self N/A N/A N/A  'destroy' provides a nicer experience for users than the
    appscale-terminate-instances command, by using the configuration options
    present in the AppScalefile found in the current working directory.

    Raises:
      AppScalefileException: If there is no AppScalefile in the current working
      directory.
     N/A contents N/A N/A self read_appscalefile N/A command N/A N/A contents_as_yaml N/A N/A yaml safe_load contents N/A N/A EC2_ACCESS_KEY contents_as_yaml N/A N/A N/A N/A os environ N/A EC2_ACCESS_KEY N/A contents_as_yaml N/A EC2_ACCESS_KEY N/A N/A EC2_SECRET_KEY contents_as_yaml N/A N/A N/A N/A os environ N/A EC2_SECRET_KEY N/A contents_as_yaml N/A EC2_SECRET_KEY N/A N/A EC2_URL contents_as_yaml N/A N/A N/A N/A os environ N/A EC2_URL N/A contents_as_yaml N/A EC2_URL N/A N/A keyname contents_as_yaml N/A N/A N/A N/A command append --keyname N/A N/A N/A command append N/A contents_as_yaml N/A keyname N/A N/A N/A verbose contents_as_yaml N/A N/A contents_as_yaml N/A verbose True N/A N/A N/A N/A command append --verbose N/A N/A N/A test contents_as_yaml N/A N/A contents_as_yaml N/A test True N/A N/A N/A N/A command append --test N/A options N/A N/A ParseArgs command appscale-terminate-instances args N/A N/A N/A AppScaleTools terminate_instances options N/A clean N/A N/A self N/A N/A N/A  'clean' provides a mechanism that will forcefully shut down all AppScale-
    related services on virtual machines in a cluster deployment.

    Returns:
      A list of the IP addresses where AppScale was shut down.

    Raises:
      AppScalefileException: If there is no AppScalefile in the current working
        directory.
      BadConfigurationException: If this method is invoked and the AppScalefile
        indicates that a cloud deployment is being used.
     N/A contents N/A N/A self read_appscalefile N/A contents_as_yaml N/A N/A yaml safe_load contents N/A N/A ips_layout contents_as_yaml N/A N/A N/A BadConfigurationException Cannot use 'appscale clean' in a cloud deployment. N/A N/A N/A verbose contents_as_yaml N/A N/A contents_as_yaml N/A verbose True N/A N/A is_verbose N/A contents_as_yaml N/A verbose N/A N/A is_verbose False N/A N/A keyname contents_as_yaml N/A N/A keyname N/A contents_as_yaml N/A keyname N/A N/A keyname appscale N/A all_ips N/A N/A self get_all_ips N/A contents_as_yaml N/A ips_layout N/A N/A N/A test contents_as_yaml N/A N/A contents_as_yaml N/A test True N/A N/A N/A N/A LocalState ensure_user_wants_to_terminate N/A ip all_ips N/A N/A N/A N/A RemoteHelper ssh ip keyname N/A self TERMINATE is_verbose N/A N/A N/A LocalState cleanup_appscale_files keyname N/A N/A N/A AppScaleLogger success Successfully shut down your AppScale deployment. N/A all_ips N/A register N/A N/A self deployment_id N/A N/A N/A  Allows users to register their AppScale deployment with the AppScale
    Portal.

    Raises:
      AppScaleException: If the deployment has already been registered.
     N/A appscale_yaml N/A N/A yaml safe_load N/A N/A self read_appscalefile N/A N/A keyname appscale_yaml N/A N/A keyname N/A appscale_yaml N/A keyname N/A N/A keyname appscale N/A nodes N/A N/A self get_nodes keyname N/A head_node N/A N/A self get_head_node nodes N/A N/A N/A RegistrationHelper appscale_has_deployment_id head_node keyname N/A N/A existing_id N/A N/A RegistrationHelper get_deployment_id head_node keyname N/A N/A existing_id deployment_id N/A N/A N/A AppScaleException This deployment has already been registered with a different ID. N/A N/A infrastructure appscale_yaml N/A N/A deployment_type cloud N/A N/A deployment_type cluster N/A deployment N/A N/A RegistrationHelper update_deployment deployment_type nodes deployment_id N/A N/A N/A RegistrationHelper set_deployment_id head_node keyname deployment_id N/A N/A N/A AppScaleLogger success N/A N/A Registration complete for AppScale deployment {0}. format N/A deployment N/A name N/A N/A