Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

storm client improvements: better docs and detect when not in a release

  • Loading branch information...
commit 3bc27e3ded3fab45201a156501bfad6cbceecc94 1 parent 340dedc
@nathanmarz authored
Showing with 11 additions and 1 deletion.
  1. +2 −0  bin/build_release.sh
  2. +9 −1 bin/storm
View
2  bin/build_release.sh
@@ -19,6 +19,8 @@ mkdir $DIR/lib
cp storm*jar $DIR/
cp lib/*.jar $DIR/lib
+echo $RELEASE > $DIR/RELEASE
+
cp -R log4j $DIR/
mkdir $DIR/logs
View
10 bin/storm
@@ -23,6 +23,13 @@ else:
CONF_DIR = os.path.expanduser("~/.storm")
STORM_DIR = "/".join(os.path.abspath( __file__ ).split("/")[:-2])
+if not os.path.exists(STORM_DIR + "/RELEASE"):
+ print "******************************************"
+ print "The storm client can only be run from within a release. You appear to be trying to run the client from a checkout of Storm's source code."
+ print "\nYou can download a Storm release at https://github.com/nathanmarz/storm/downloads"
+ print "******************************************"
+ sys.exit(1)
+
def get_jars_full(adir):
files = os.listdir(adir)
ret = []
@@ -122,7 +129,8 @@ def print_commands():
global COMMANDS
cmds = COMMANDS.keys()
cmds.sort()
- print "Commands:\n\t", reduce(lambda x,y: x + ', ' + y, cmds[1:], cmds[0])
+ print "Commands:\n\t", reduce(lambda x,y: x + '\n\t' + y, cmds[1:], cmds[0])
+ print "\nDocumentation for the storm client can be found at https://github.com/nathanmarz/storm/wiki/Command-line-client\n"
def print_usage(msg=None):
if msg != None:
Please sign in to comment.
Something went wrong with that request. Please try again.