Module: Import
- Defined in:
- lib/youtube_dlhelper/import_config.rb
Overview
Module for Importing Informations
Class Method Summary collapse
-
.import_config ⇒ Array
This Module parses the youtube_dlhelper.conf.
Class Method Details
.import_config ⇒ Array
This Module parses the youtube_dlhelper.conf
17 18 19 20 21 22 23 24 25 26 |
# File 'lib/youtube_dlhelper/import_config.rb', line 17 def self.import_config home = Dir.home config = ParseConfig.new(File.join("#{home}/.youtube_dlhelper/youtube_dlhelper.conf")) # @note Saving the variable musiddir music_dir = config['musicdir'].to_s # @note Saving the variable ogg_file_accept ogg_file_accept = config['ogg_file_accept'].to_s # @note It returns a array with music_dir, ogg_file_accept, ffmpeg_binary [music_dir, ogg_file_accept] end |