Sha256: ea124f0b357471f8041dc40bdbb135056607cc12ae35f0c69b5e99198b3caf7f
Contents?: true
Size: 306 Bytes
Versions: 6
Compression:
Stored size: 306 Bytes
Contents
require("yaml") module Aocli module CookieRetriever module_function def call return unless file_exists? config = YAML.load_file(Aocli::Values::CONFIG_FILE_PATH) config[:cookie] end def file_exists? File.file?(Aocli::Values::CONFIG_FILE_PATH) end end end
Version data entries
6 entries across 6 versions & 1 rubygems