Example #1
0
 public ScmResult getScm(ScmName name) {
   return client
       .begin(API_REPOSITORIES, name.toString())
       .get(GetScmRepositoriesResult.class)
       .getScms()
       .get(0);
 }
Example #2
0
 public void removeScm(ScmName name) {
   client.begin(API_REPOSITORIES + "/" + name).delete();
 }
Example #3
0
 public void createScm(ScmName name, ScmLocation location, ScmType type, ScmUserId userId) {
   CreateScm command = new CreateScm(name, location, type, userId);
   client.begin(API_REPOSITORIES + "/" + name).put(command);
 }
Example #4
0
 public List<ScmResult> listAll() {
   return client.begin(API_REPOSITORIES).get(GetScmRepositoriesResult.class).getScms();
 }