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

com.prezi.pride.vcs.git.GitVcsSupportFactory Maven / Gradle / Ivy

package com.prezi.pride.vcs.git;

import com.prezi.pride.vcs.VcsSupport;
import com.prezi.pride.vcs.VcsSupportFactory;
import org.apache.commons.configuration.Configuration;

import java.io.File;

public class GitVcsSupportFactory implements VcsSupportFactory {
	@Override
	public String getType() {
		return "git";
	}

	@Override
	public VcsSupport createVcsSupport(Configuration configuration) {
		return new GitVcsSupport(configuration);
	}

	@Override
	public boolean canSupport(File targetDirectory) {
		return new File(targetDirectory, ".git").isDirectory();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy