Module: MyLocalPutio
- Defined in:
- lib/my-local-putio.rb,
lib/my-local-putio/logger.rb,
lib/my-local-putio/fetcher.rb,
lib/my-local-putio/version.rb,
lib/my-local-putio/putio_cli.rb,
lib/my-local-putio/downloader.rb,
lib/my-local-putio/disk_manager.rb,
lib/my-local-putio/configuration.rb,
lib/my-local-putio/subtitles_manager.rb
Defined Under Namespace
Classes: Configuration, DiskManager, Downloader, Fetcher, Logger, PutioCli, SubtitlesManager
Constant Summary collapse
- VERSION =
"4.4.2"
Class Method Summary collapse
Class Method Details
.print_introduction_msg(configuration) ⇒ Object
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/my-local-putio.rb', line 34 def self.print_introduction_msg(configuration) return if configuration.silent puts "Starting My Local Put.io - version #{VERSION}" puts "https://github.com/rafaelbiriba/my-local-putio" puts "=============================================" puts "Full path of the local destination: #{File.realdirpath(configuration.local_destination)} (Free space: #{configuration.disk_manager.get_folder_free_space(configuration.local_destination)} MB)" puts "Full path of the temporary destination: #{File.realdirpath(configuration.temp_destination)} (Free space: #{configuration.disk_manager.get_folder_free_space(configuration.temp_destination)} MB)" puts ">>> Delete remote files enabled!" if configuration.delete_remote puts ">>> With subtitles enabled!" if configuration.with_subtitles puts ">>> With detailed progress bar!" if configuration.detailed_progress puts ">>> SOCKS5 enabled with #{configuration.socks_host}:#{configuration.socks_port}" if configuration.socks_enabled? puts ">>> With disk threshold of #{configuration.disk_threshold} MB!" if configuration.disk_threshold puts ">>> DEBUG enabled! Hello Mr(s) developer :)" if configuration.debug puts "=============================================" sleep 2 # In case the configurations are not correct, 2 seconds to kill the command line before run end |