lib/flydata/helpers.rb in flydata-0.2.2 vs lib/flydata/helpers.rb in flydata-0.2.3

- old
+ new

@@ -16,28 +16,33 @@ puts usage_text end def usage_text text = "" + text += <<-EOM +Fix the issue and try again. If the problem continues, please contact support@flydata.com + +EOM + flydata_log = File.join(FLYDATA_HOME, 'flydata.log') + if File.exists?(flydata_log) + text += <<-EOM +Also check the Agent log. + Log path: #{flydata_log} +EOM + end + 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 status # check flydata process conf # show configuration - sync # initial sync(only for mysql database) - -If you encountered login or any other errors during setup, -please setup flydata again by following commands. - source ~/.bashrc - flydata setup - -You can check the logs of sender(flydata) process. - Log path: #{File.join(FLYDATA_HOME, 'flydata.log')} + sync [tables] # initial sync (only for mysql database) + sync:generate_table_ddl [tables] # Generate CREATE TABLE script for Redshift + sync:reset [tables] # reset sync EOM text += "\n" text += '-' * 64 text += "\n" text