lib/sifttter_redux/dbu.rb in sifttter-redux-0.3.8 vs lib/sifttter_redux/dbu.rb in sifttter-redux-0.3.9
- old
+ new
@@ -59,15 +59,14 @@
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 "#{ File.join(path, 'dropbox_uploader.sh') }" } 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