lib/sifttter_redux/dbu.rb in sifttter-redux-0.3.7 vs lib/sifttter_redux/dbu.rb in sifttter-redux-0.3.8
- old
+ new
@@ -58,15 +58,16 @@
else
CLIMessage.info_block("Downloading Dropbox Uploader to #{ path }...", 'Done.', true) do
system "git clone https://github.com/andreafabrizi/Dropbox-Uploader.git #{ path }"
end
end
-
- # If the user has never configured Dropbox Uploader, have them do it here.
- CLIMessage.info_block('Initializing Dropbox Uploader...') { system "#{ @dbu }" } unless File.exists?(CONFIG_FILEPATH)
Configuration.add_section('db_uploader')
Configuration['db_uploader'].merge!('local_filepath' => path)
+ load(File.join(path, 'dropbox_uploader.sh'))
+
+ # If the user has never configured Dropbox Uploader, have them do it here.
+ CLIMessage.info_block('Initializing Dropbox Uploader...') { system "#{ @dbu }" } unless File.exists?(CONFIG_FILEPATH)
else
puts "Sorry, but #{ path } isn't a valid directory."
end
end
end