~juju-deployers/juju-deployer/darwin

« back to all changes in this revision

Viewing changes to deployer/env/base.py

  • Committer: Kapil Thangavelu
  • Date: 2013-10-02 17:50:05 UTC
  • mfrom: (69.2.7 peter-bootstrap-sync)
  • Revision ID: kapil@canonical.com-20131002175005-gout2lnz57lau392
merge bootstrap and expose support, version incr

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
                        units.append(uid)
65
65
        return units
66
66
 
 
67
    def bootstrap(self):
 
68
        self.log.info("bootstraping, this might take a while...")
 
69
        params = self._named_env(["juju", "bootstrap"])
 
70
        self._check_call(
 
71
            params, self.log, "Failed to bootstrap")
 
72
 
 
73
        # block until topology is returned
 
74
        self.get_cli_status()
 
75
        self.log.info(" Bootstrap complete")
 
76
 
67
77
    def deploy(self, name, charm_url,
68
78
               repo=None, config=None,
69
79
               constraints=None, num_units=1, force_machine=None):
88
98
            self._check_call(
89
99
                params, self.log, "Error deploying service %r", name)
90
100
 
 
101
    def expose(self, name):
 
102
        params = self._named_env(["juju", "expose", name])
 
103
        self._check_call(
 
104
            params, self.log, "Error exposing service %r", name)
 
105
 
91
106
    def terminate_machine(self, mid, wait=False):
92
107
        """Terminate a machine.
93
108