Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cmyers proposed transforming repos #8

Closed
wants to merge 2 commits into from

Commits on Mar 1, 2018

  1. Transforming LocalRepoFinder and QbtRemote classes.

    These classes allow the user to map a repo to a different name locally on disk
    and on the server, allowing those places to use names which contain otherwise
    invalid characters for repo names.
    
    Resolves #5 and mitigates #4.
    
    QbtConfig might look like this:
    
    Function<String, String> transformNames = new Function<String, String>() {
        public String apply(String name) {
            return name.replace("flume_ng", "flume-ng").replace("hadoop_lzo", "hadoop-lzo");
        }
    }
    
    return new QbtConfig(
        new TransformingFormatLocalRepoFinder(gitLocalVcs, transformNames, workspaceRoot.toString()),
        // ...
        new MapQbtRemoteFinder([
            formatremote: new TransformingFormatQbtRemote(
                gitRemoteVcs,
                transformNames,
                "ssh://git@github.mtv.cloudera.com/TerabyteQbt/%r.git",
            ),
            githubremote: new TransformingGithubQbtRemote(
                gitRemoteVcs,
                transformNames,
                githubToken,
                "TerabyteQbt",
                "%r",
            ),
        ]),
        // ...
    );
    terabyte committed Mar 1, 2018
    Configuration menu
    Copy the full SHA
    6b177a8 View commit details
    Browse the repository at this point in the history
  2. Merge remote-tracking branch 'cmyers/proposed-transforming-repos' int…

    …o cmyers-proposed-transforming-repos
    terabyte committed Mar 1, 2018
    Configuration menu
    Copy the full SHA
    f699532 View commit details
    Browse the repository at this point in the history