rhbz1110627 zanata init

https://bugzilla.redhat.com/show_bug.cgi?id=1110627
and https://bugzilla.redhat.com/show_bug.cgi?id=1038852

Depends on https://github.com/zanata/zanata-api/pull/15 and https://github.com/zanata/zanata-server/pull/520
Only publican-push and pull are using expectYes method from ConfigurableCommand. They are all deprecated class/commands. They are using system console whereas the new code is using ansi wrapped print stream. Since they are deprecated I don't want to mess with it. 

----- Original Message -----

> From: "David Mason" <notifications@github.com>
> To: "zanata/zanata-client" <zanata-client@noreply.github.com>
> Cc: "Patrick Huang" <pahuang@redhat.com>
> Sent: Thursday, July 17, 2014 3:11:00 PM
> Subject: Re: [zanata-client] rhbz1110627 zanata init (#27)

> In
> zanata-client-commands/src/main/java/org/zanata/client/commands/InteractiveableFromConsole.java:
> > +/**
> > + * @author Patrick Huang <a
> > + *         href="mailto:pahuang@redhat.com">pahuang@redhat.com</a>
> > + */
> > +public class InteractiveableFromConsole implements Interactiveable {
> > +    private static final String CONSOLE_CLOSE_ERROR = "console stream
> > closed";
> > +    private final Console console;
> > +    private final PrintStream out;
> > +
> > +    public InteractiveableFromConsole() {
> > +        console = System.console();
> > +        out = AnsiConsole.out();
> > +    }
> > +
> > +    @Override
> > +    public void expectYes() {

> This code is essentially identical to expectYes(Console) elsewhere. Will it
> be possible to unify them at some point?

> —
> Reply to this email directly or view it on GitHub .