Create cloud cli command.
Downloads and launches eureka,kafka,configserver,h2 server & hystrix dashboard.
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-cli</artifactId>
|
||||
<version>1.1.3.BUILD-SNAPSHOT</version>
|
||||
<version>1.2.0.BUILD-SNAPSHOT</version>
|
||||
<packaging>jar</packaging>
|
||||
|
||||
<name>spring-cloud-cli</name>
|
||||
@@ -14,10 +14,15 @@
|
||||
<parent>
|
||||
<groupId>org.springframework.cloud</groupId>
|
||||
<artifactId>spring-cloud-cli-parent</artifactId>
|
||||
<version>1.1.3.BUILD-SNAPSHOT</version>
|
||||
<version>1.2.0.BUILD-SNAPSHOT</version>
|
||||
</parent>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.springframework.cloud.launcher</groupId>
|
||||
<artifactId>spring-cloud-launcher-cli</artifactId>
|
||||
<version>${project.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-cli</artifactId>
|
||||
|
||||
@@ -22,6 +22,7 @@ import org.springframework.boot.cli.command.Command;
|
||||
import org.springframework.boot.cli.command.CommandFactory;
|
||||
import org.springframework.cloud.cli.command.encrypt.DecryptCommand;
|
||||
import org.springframework.cloud.cli.command.encrypt.EncryptCommand;
|
||||
import org.springframework.cloud.launcher.cli.LauncherCommand;
|
||||
|
||||
/**
|
||||
* @author Dave Syer
|
||||
@@ -31,7 +32,7 @@ public class CloudCommandFactory implements CommandFactory {
|
||||
|
||||
@Override
|
||||
public Collection<Command> getCommands() {
|
||||
return Arrays.<Command>asList(new EncryptCommand(), new DecryptCommand());
|
||||
return Arrays.<Command>asList(new EncryptCommand(), new DecryptCommand(), new LauncherCommand());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user