ARTEMIS-304 Prompt for role when creating instance
This commit is contained in:
parent
5b824e1bcf
commit
570ee53d6c
|
@ -151,7 +151,7 @@ public class Create extends InputAbstract {
|
||||||
@Option(name = "--password", description = "The user's password (Default: input)")
|
@Option(name = "--password", description = "The user's password (Default: input)")
|
||||||
String password;
|
String password;
|
||||||
|
|
||||||
@Option(name = "--role", description = "The name for the role created (Default: amq)")
|
@Option(name = "--role", description = "The name for the role created (Default: input)")
|
||||||
String role;
|
String role;
|
||||||
|
|
||||||
@Option(name = "--no-web", description = "This will remove the web server definition from bootstrap.xml")
|
@Option(name = "--no-web", description = "This will remove the web server definition from bootstrap.xml")
|
||||||
|
@ -370,7 +370,7 @@ public class Create extends InputAbstract {
|
||||||
|
|
||||||
public String getRole() {
|
public String getRole() {
|
||||||
if (role == null) {
|
if (role == null) {
|
||||||
role = "amq";
|
role = input("--role", "Please provide the default role:", "amq");
|
||||||
}
|
}
|
||||||
return role;
|
return role;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue