All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.moleksyuk.vcs.impl.Accurev.groovy Maven / Gradle / Ivy

package com.github.moleksyuk.vcs.impl

import com.github.moleksyuk.vcs.Vcs
import com.github.moleksyuk.vcs.VcsType
import com.github.moleksyuk.vcs.cmd.parser.VcsCommandOutputParser
import com.github.moleksyuk.vcs.cmd.parser.impl.AccurevOutputParser

class Accurev implements Vcs {

    private final List commandArguments;

    public Accurev(String stream) {
        if (!stream?.trim()) throw IllegalArgumentException('stream can not be null')
        this.commandArguments = ['hist', '-ft', '-t', 'highest', '-s', stream]
    }

    @Override
    VcsType getType() {
        return VcsType.ACCUREV
    }

    @Override
    String getCommand() {
        return 'accurev'
    }

    @Override
    List getCommandArguments() {
        return commandArguments
    }

    @Override
    VcsCommandOutputParser getCommandOutputParser() {
        return new AccurevOutputParser()
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy