lib/flydata/command/helper.rb in flydata-0.5.8 vs lib/flydata/command/helper.rb in flydata-0.5.9

- old
+ new

@@ -37,23 +37,23 @@ super @helper_config = Flydata::Helper::ConfigParser.parse_file(opts[:config])[:helper] create_helper_dirs end - def start + def start(options = {}) if running? - log_info_stdout("Helper is already running.") + log_info_stdout("Helper is already running.", {}, options) else raw_start end end - def stop + def stop(options = {}) if running? run_command(stop_cmd) else - log_info_stdout("Helper is not running.") + log_info_stdout("Helper is not running.", {}, options) end end def status if running? @@ -61,12 +61,12 @@ else log_info_stdout("Helper is not running.") end end - def restart + def restart(options = {}) if running? - log_info_stdout("Restarting Helper.") + log_info_stdout("Restarting Helper.", {}, options) run_command(kill_hup_cmd) else raw_start end end