Live deploy as a nightly version

I've added the live deploy option as a nightly version. This future is enabled by setting the "live-deploy-mode" flag to true.

review @devoncarew @ussuri
Can't find this comment in GitHub, but yes, you're right. I didn't think
about it. Alex, Devon's suggestion is probably the best approach. Sorry for
the confusion and for the never-ending comments. I think we're good to go
after this last bit.


On Sat, Sep 6, 2014 at 9:28 AM, Devon Carew <notifications@github.com>
wrote:

> In ide/web/lib/mobile/deploy.dart:
>
> > +    LiveDeployManager._internal();
> > +
> > +    Future _liveDeploy(Container deployContainer) {
> > +      ProgressMonitor _monitor = new ProgressMonitor();
> > +      MobileDeploy deployer = new MobileDeploy(deployContainer, localPrefs);
> > +
> > +      // Invoke the deployer methods in Futures in order to capture exceptions.
> > +      Future f = new Future(() {
> > +        return deployer.pushAdb(_monitor);
> > +      });
> > +
> > +      return _monitor.runCancellableFuture(f).then((_) {
> > +        setDeploymentTime(deployContainer,
> > +            (new DateTime.now()).millisecondsSinceEpoch);
> > +      }).catchError((e) {
> > +      }).whenComplete(() {
>
> That, or something like: Notifier notifier =
> Dependencies.dependency[Notifier]; notifier.showMessage(title, message);
> … <#1484bcbc3b22be06_>
> On Fri, Sep 5, 2014 at 2:54 PM, Albu Alexandru <notifications@github.com>
> wrote: In ide/web/lib/mobile/deploy.dart: > +
> LiveDeployManager._internal(); > + > + Future _liveDeploy(Container
> deployContainer) { > + ProgressMonitor _monitor = new ProgressMonitor(); >
> + MobileDeploy deployer = new MobileDeploy(deployContainer, localPrefs); >
> + > + // Invoke the deployer methods in Futures in order to capture
> exceptions. > + Future f = new Future(() { > + return
> deployer.pushAdb(_monitor); > + }); > + > + return
> _monitor.runCancellableFuture(f).then((_) { > +
> setDeploymentTime(deployContainer, > + (new
> DateTime.now()).millisecondsSinceEpoch); > + }).catchError((e) { > +
> }).whenComplete(() { I am not sure how can I access spark.showErrorMessage
> from the LiveDeployManager class. — Reply to this email directly or view it
> on GitHub <
> https://github.com/dart-lang/chromedeveditor/pull/3330/files#r17200542>.
>  -- Devon Carew Software Engineer Google, Inc.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/dart-lang/chromedeveditor/pull/3330/files#r17209791>.
>