lib/uirusu/cli/application.rb
# Loads the .uirusu config file for the api key
#
Loads the .uirusu config file for the api key
Loads the . uirusu config file for the api key
def load_config
				if File.exists?(File.expand_path(CONFIG_FILE))
					@config = YAML.load_file File.expand_path(CONFIG_FILE)
				else
					STDERR.puts "[!] #{CONFIG_FILE} does not exist. Please run #{APP_NAME} --create-config, to create it."
					exit
				end
				@options[:timeout] = @config['virustotal']['timeout'] if @config['virustotal']['timeout'] != nil
			end
def load_config if File . exists? ( File . expand_path ( CONFIG_FILE ) ) @config = YAML . load_file File . expand_path ( CONFIG_FILE ) else STDERR . puts "[!] #{CONFIG_FILE} does not exist. Please run #{APP_NAME} --create-config, to create it." exit end @options [ :timeout ] = @config [ 'virustotal' ] [ 'timeout' ] if @config [ 'virustotal' ] [ 'timeout' ] != nil end
Loads the .uirusu config file for the api key
Loads the . uirusu config file for the api key