class Exercism
Constants
- VERSION
Public Class Methods
alternate_config_path()
click to toggle source
# File lib/exercism.rb, line 47 def self.alternate_config_path Config.alternate_path end
config()
click to toggle source
# File lib/exercism.rb, line 51 def self.config Config.read(home) end
home()
click to toggle source
# File lib/exercism.rb, line 25 def self.home @home ||= Env.home end
login(github_username, key, dir)
click to toggle source
# File lib/exercism.rb, line 29 def self.login(github_username, key, dir) data = { 'github_username' => github_username, 'key' => key, 'project_dir' => dir } Config.write home, data end
project_dir()
click to toggle source
# File lib/exercism.rb, line 43 def self.project_dir config.project_dir end
user()
click to toggle source
# File lib/exercism.rb, line 38 def self.user c = config User.new(c.github_username, c.key) end