Skip to content

Commit 809232d

Browse files
committed
Update cookbook to revised api
1 parent 9835f90 commit 809232d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@
159159
<dependency>
160160
<groupId>com.gitblit</groupId>
161161
<artifactId>gitblit</artifactId>
162-
<version>1.4.1-SNAPSHOT</version>
162+
<version>1.4.2-SNAPSHOT</version>
163163
<scope>provided</scope>
164164
</dependency>
165165
</dependencies>

src/main/java/com/gitblit/plugins/cookbook/GitblitCookbookPlugin.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@ public void stop() {
4949
@CommandMetaData(name = "cookbook", description = "Example commands")
5050
public static class CookbookDispatcher extends DispatchCommand {
5151
@Override
52-
protected void registerCommands(UserModel user) {
53-
registerCommand(user, HelloWorldCommand.class);
54-
registerCommand(user, StatusCommand.class);
52+
protected void setup(UserModel user) {
53+
register(user, HelloWorldCommand.class);
54+
register(user, StatusCommand.class);
5555
}
5656
}
5757
}

0 commit comments

Comments
 (0)