Example usage for com.amazonaws.services.codedeploy.model BundleType Zip

List of usage examples for com.amazonaws.services.codedeploy.model BundleType Zip

Introduction

In this page you can find the example usage for com.amazonaws.services.codedeploy.model BundleType Zip.

Prototype

BundleType Zip

To view the source code for com.amazonaws.services.codedeploy.model BundleType Zip.

Click Source Link

Usage

From source file:jetbrains.buildServer.runner.codedeploy.CodeDeployUtil.java

License:Apache License

@Nullable
public static String getBundleType(@NotNull String revision) {
    if (revision.endsWith(".zip"))
        return BundleType.Zip.name();
    if (revision.endsWith(".tar"))
        return BundleType.Tar.name();
    if (revision.endsWith(".tar.gz") || revision.endsWith(".tgz"))
        return BundleType.Tgz.name();
    return null;//from w ww  .  j av  a 2s.  c o  m
}