bin/srd in sifttter-redux-0.3.7 vs bin/srd in sifttter-redux-0.3.8
- old
+ new
@@ -64,20 +64,16 @@
# ======================================================
pre do |global, command, options, args|
# Load SifttterRedux configuration module.
Configuration.load(SRD_CONFIG_FILEPATH)
-
+
# Load Dropbox Uploader module.
- DBU.load(File.join(Configuration['db_uploader']['local_filepath'], 'dropbox_uploader.sh'))
+ DBU.load(File.join(Configuration['db_uploader']['local_filepath'], 'dropbox_uploader.sh')) if File.exists?(SRD_CONFIG_FILEPATH)
# Load Methadone CLILogging module.
- Methadone::CLILogging.change_logger(Methadone::CLILogger.new(
- File.open(SRD_LOG_FILEPATH, 'a+')
- ))
-
- # Initialize if the config file doesn't exist.
- init unless File.exists?(SRD_CONFIG_FILEPATH)
+ Methadone::CLILogging.change_logger(Methadone::CLILogger.new(SRD_LOG_FILEPATH, SRD_LOG_FILEPATH))
+
true
end
# ======================================================
# Commands