Package org.sonatype.nexus.rest.model

Examples of org.sonatype.nexus.rest.model.StatusResource


                return Result.FAILURE;
            }
        }

        // Try to fetch something before we bind into context
        StatusResource status = client.ext(BasicClient.class).status();

        context.getVariables().set(NexusClient.class, client);

        io.println("Connected to: {} ({} v{})", status.getBaseUrl(), status.getAppName(), status.getApiVersion()); // TODO: i18n

        return client;
    }
View Full Code Here


    protected Object execute(final CommandContext context, final NexusClient client) throws Exception {
        assert context != null;
        assert client != null;
        IO io = context.getIo();

        StatusResource status = client.ext(BasicClient.class).status();

        // TODO: Add colors

        io.println("App Name: {}", status.getAppName()); // TODO: i18n
        io.println("Version: {}", status.getVersion()); // TODO: i18n
        io.println("State: {}", status.getState());

        // TODO: Add more details

        return status;
    }
View Full Code Here

TOP

Related Classes of org.sonatype.nexus.rest.model.StatusResource

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.