bin/srd in sifttter-redux-0.2.4 vs bin/srd in sifttter-redux-0.2.5
- old
+ new
@@ -159,11 +159,10 @@
download_sifttter_files
dates.each do |date|
run_sifttter(date)
- # puts date
end
# Upload any Day One entries to Dropbox (if there are any).
if (!Dir[$config.sifttter_redux["dayone_local_filepath"] + "/*"].empty?)
CliMessage.info("Uploading Day One entries to Dropbox...", false)
output = `#{$db_uploader} upload #{$config.sifttter_redux["dayone_local_filepath"] + "/*"} #{$config.sifttter_redux["dayone_remote_filepath"]}`
@@ -177,11 +176,11 @@
CliMessage.info("Removing downloaded Sifttter files...", false)
FileUtils.rm_rf($config.sifttter_redux["sifttter_local_filepath"]) if Dir.exists?($config.sifttter_redux["sifttter_local_filepath"])
CliMessage.finish_message('DONE.')
end
-
+
CliMessage.section('EXECUTION COMPLETE!')
end
end
#| ------------------------------------------------------
@@ -193,13 +192,15 @@
command :init do |c|
c.action do |global_options, options, args|
CliMessage.section('INITIALIZING...')
if File.exists?($config.configFile)
- initialize_procedures if CliMessage.prompt("It looks like you've already initialized Sifttter Redux. Do you want to re-initialize?", "N").downcase
+ initialize_procedures if CliMessage.prompt("It looks like you've already initialized Sifttter Redux. Do you want to re-initialize?", "N").downcase == 'y'
else
initialize_procedures
end
+
+ CliMessage.section('INITIALIZATION COMPLETE!')
end
end
exit run(ARGV)