class Reposit::CredentialsReader
Attributes
api_key[R]
username[R]
Public Class Methods
new()
click to toggle source
# File lib/reposit.rb, line 101 def initialize @username, @api_key = get_credentials end
Public Instance Methods
get_credentials()
click to toggle source
# File lib/reposit.rb, line 105 def get_credentials File.readlines(File.expand_path('~') + '/.reposit').map do |credential| credential.strip end end