lib/sifttter-redux/methods.rb in sifttter-redux-0.2.4 vs lib/sifttter-redux/methods.rb in sifttter-redux-0.2.5
- old
+ new
@@ -51,12 +51,10 @@
$config.add_to_section({"config_location" => $config.configFile}, "sifttter_redux")
install_db_uploader
collect_preferences
- CliMessage.section("INITIALIZATION COMPLETE!")
-
$config.save_configuration
end
#| ------------------------------------------------------
#| install_db_uploader method
@@ -66,11 +64,11 @@
#| @return Void
#| ------------------------------------------------------
def install_db_uploader
valid_directory_chosen = false
- CliMessage.section('DOWNLOADING DROPBOX UPLOADER...')
+ CliMessage.section('CONFIGURING DROPBOX UPLOADER...')
# Create a new configuration section for Dropbox-Uploader
$config.create_section("db_uploader")
until valid_directory_chosen
@@ -85,12 +83,13 @@
db_uploader_location << "/Dropbox-Uploader"
# If, for some reason, Dropbox Uploader alread exists at this location,
# skip the clone.
if File.directory?(db_uploader_location)
- CliMessage.info("You seem to already have Dropbox Uploader at this location; skipping...")
+ CliMessage.warning("Using pre-existing Dropbox Uploader at #{db_uploader_location}...")
else
+ CliMessage.info("Downloading Dropbox Uploader to #{db_uploader_location}...")
%x{git clone https://github.com/andreafabrizi/Dropbox-Uploader.git #{db_uploader_location}}
end
# Save config data to YAML.
$config.add_to_section({"local_filepath" => db_uploader_location}, "db_uploader")
@@ -169,10 +168,9 @@
end
end
if projects.length <=0
CliMessage.warning("No entries found...")
- exit!
end
if projects.length > 0
entrytext = "# Things done on #{date_for_title}\n\n"
projects.each do |project|
\ No newline at end of file