~frankban/juju-quickstart/env-creation-proto

« back to all changes in this revision

Viewing changes to quickstart/juju.py

  • Committer: Francesco Banconi
  • Date: 2013-10-30 11:41:44 UTC
  • mfrom: (7.1.3 header-fixes)
  • Revision ID: francesco.banconi@canonical.com-20131030114144-bdjrw7d23u23vdxf
File header fixes + pep8.

R=
CC=
https://codereview.appspot.com/19750043

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# This file is part of the Juju GUI, which lets users view and manage Juju
2
 
# environments within a graphical interface (https://launchpad.net/juju-gui).
 
1
# This file is part of the Juju Quickstart Plugin, which lets users set up a
 
2
# Juju environment in very few steps (https://launchpad.net/juju-quickstart).
3
3
# Copyright (C) 2013 Canonical Ltd.
4
4
#
5
5
# This program is free software: you can redistribute it and/or modify it under
37
37
    """A Juju bootstrapped environment.
38
38
 
39
39
    Instances of this class can be used to run API operations on a Juju
40
 
    environment. This is a subclass of the jujuclient.Environment object.
 
40
    environment. Specifically this subclass enables bundle support and
 
41
    deployments to specific machines.
41
42
    """
42
43
 
43
44
    def deploy(
97
98
 
98
99
 
99
100
class WebSocketConnection(websocket.WebSocket):
100
 
    """A WebSocket client connection.
101
 
 
102
 
    This is a subclass of the websocket.WebSocket object.
103
 
    """
 
101
    """A WebSocket client connection."""
104
102
 
105
103
    def send(self, message):
106
104
        """Send the given WebSocket message.