class GitSleep::CredentialsFile
Public Instance Methods
destroy()
click to toggle source
# File lib/git-sleep/credentials_file.rb, line 11 def destroy File.delete(path) true rescue Errno::ENOENT false end
path()
click to toggle source
# File lib/git-sleep/credentials_file.rb, line 18 def path @path ||= File.expand_path('~/.netrc') end
present?()
click to toggle source
# File lib/git-sleep/credentials_file.rb, line 7 def present? File.exist?(path) end