lib/sifttter_redux.rb in sifttter-redux-0.3.5 vs lib/sifttter_redux.rb in sifttter-redux-0.3.6
- old
+ new
@@ -11,20 +11,19 @@
#
# Wrapper module for all other modules in this project
# ======================================================
module SifttterRedux
- using CliMessage
- using Configuration
# ----------------------------------------------------
# Constants
# ----------------------------------------------------
DBU_LOCAL_FILEPATH = '/usr/local/opt'
DO_REMOTE_FILEPATH = "/Apps/Day\\ One/Journal.dayone/entries"
DO_LOCAL_FILEPATH = '/tmp/dayone'
SRD_CONFIG_FILEPATH = File.join(ENV['HOME'], '.sifttter_redux')
+ SRD_LOG_FILEPATH = File.join(ENV['HOME'], '.sifttter_redux_log')
SFT_LOCAL_FILEPATH = '/tmp/sifttter'
SFT_REMOTE_FILEPATH = '/Apps/ifttt/sifttter'
@verbose_output = true
@@ -43,11 +42,11 @@
# Run the wizard to download Dropbox Uploader.
DBU::install_wizard
# Collect other misc. preferences.
- CliMessage.section_block('COLLECTING PREFERENCES...') do
+ CLIMessage.section_block('COLLECTING PREFERENCES...') do
pref_prompts = [
{
prompt: 'Location for downloaded Sifttter files from Dropbox',
default: SFT_LOCAL_FILEPATH,
key: 'sifttter_local_filepath',
@@ -72,14 +71,16 @@
section: 'sifttter_redux'
}
]
pref_prompts.each do |prompt|
- pref = CliMessage.prompt(prompt[:prompt], prompt[:default])
+ pref = CLIMessage.prompt(prompt[:prompt], prompt[:default])
Configuration[prompt[:section]].merge!(prompt[:key] => pref)
end
end
-
+
+ Methadone::CLILogging.info("Configuration values: #{ Configuration.dump }")
+
Configuration.save
end
# ----------------------------------------------------
# verbose method
\ No newline at end of file