Sha256: 660440ba8f48913e4f9efaac337b342914fa8add3525753e0fa90d7a90692471
Contents?: true
Size: 495 Bytes
Versions: 3
Compression:
Stored size: 495 Bytes
Contents
module Actir class CookiesFile class << self # 获取cookies文件的路径 # 因为涉及到权限问题,路径需要放在个人账号目录下 # 通过whoami命令获取当前账户名称 # 暂时存放在/User/xx/目录下 def path user_name = `whoami` return "/Users/" + user_name + "/" end def name return "cookies.yaml" end def exists? File::exists?(path + name) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
actir-1.4.1.3 | lib/actir/script/cookies_file.rb |
actir-1.4.1.2 | lib/actir/script/cookies_file.rb |
actir-1.4.1.1 | lib/actir/script/cookies_file.rb |