Sha256: 2bb239ba5fc7593642088a8bfd7f4e99e5118b0e6665ec029a3e6a6005cce55a
Contents?: true
Size: 490 Bytes
Versions: 12
Compression:
Stored size: 490 Bytes
Contents
module DNGG module Token def check_token ggsm_path = '.git/dngg' unless File.exist?(ggsm_path) Dir.mkdir(ggsm_path) end config_path = "#{ggsm_path}/TOKEN" if !File.exist?(config_path) || '' == IO.read(config_path).strip || IO.readlines(config_path)[0].strip == '' file = File.new(config_path, 'w') file << "\n# 请输入GitLab private-token" file.close return false end return true end end end
Version data entries
12 entries across 12 versions & 1 rubygems