activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andytay...@apache.org
Subject [1/2] activemq-artemis git commit: ARTEMIS-304 Prompt for role when creating instance
Date Wed, 18 Nov 2015 08:38:21 GMT
Repository: activemq-artemis
Updated Branches:
  refs/heads/master 5b824e1bc -> 527da42f1


ARTEMIS-304 Prompt for role when creating instance


Project: http://git-wip-us.apache.org/repos/asf/activemq-artemis/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq-artemis/commit/570ee53d
Tree: http://git-wip-us.apache.org/repos/asf/activemq-artemis/tree/570ee53d
Diff: http://git-wip-us.apache.org/repos/asf/activemq-artemis/diff/570ee53d

Branch: refs/heads/master
Commit: 570ee53d6c6252911de694e25baa23f4388e6f54
Parents: 5b824e1
Author: jbertram <jbertram@apache.org>
Authored: Tue Nov 17 10:01:10 2015 -0600
Committer: jbertram <jbertram@apache.org>
Committed: Tue Nov 17 10:01:50 2015 -0600

----------------------------------------------------------------------
 .../java/org/apache/activemq/artemis/cli/commands/Create.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq-artemis/blob/570ee53d/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/Create.java
----------------------------------------------------------------------
diff --git a/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/Create.java
b/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/Create.java
index 1b4a175..fd8802a 100644
--- a/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/Create.java
+++ b/artemis-cli/src/main/java/org/apache/activemq/artemis/cli/commands/Create.java
@@ -151,7 +151,7 @@ public class Create extends InputAbstract {
    @Option(name = "--password", description = "The user's password (Default: input)")
    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;
 
    @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() {
       if (role == null) {
-         role = "amq";
+         role = input("--role", "Please provide the default role:", "amq");
       }
       return role;
    }


Mime
View raw message