lib/flydata/helpers.rb in flydata-0.1.8 vs lib/flydata/helpers.rb in flydata-0.1.9
- old
+ new
@@ -11,12 +11,18 @@
end
[klass, method]
end
def print_usage
- puts '-' * 64
- puts <<-EOM
+ puts usage_text
+ end
+
+ def usage_text
+ text = ""
+ text += '-' * 64
+ text += "\n"
+ text += <<-EOM
Usage: flydata COMMAND
setup # setup initially
start # start flydata process
stop # stop flydata process
restart # restart flydata process
@@ -30,10 +36,13 @@
flydata setup
You can check the logs of sender(flydata) process.
Log path: #{File.join(FLYDATA_HOME, 'flydata.log')}
EOM
- puts '-' * 64
+ text += "\n"
+ text += '-' * 64
+ text += "\n"
+ text
end
def to_command_class(class_name)
eval("Flydata::Command::#{class_name.camelcase}")
end