Sha256: 64ba4d603c635213f3236a53836f9d368598c8a6c50a211b29c2948206a6f789
Contents?: true
Size: 872 Bytes
Versions: 7
Compression:
Stored size: 872 Bytes
Contents
require 'rubygems' if RUBY_VERSION <= "1.8.7" require 'etc' require 'json' require 'yaml' require 'fileutils' old_warn, $-w = $-w, nil begin require 'faraday' ensure $-w = old_warn end require 'exercism/version' require 'exercism/env' require 'exercism/config' require 'exercism/user' require 'exercism/assignment' require 'exercism/submission' require 'exercism/api' class Exercism def self.home @home ||= Env.home end def self.login(github_username, key, dir) data = { 'github_username' => github_username, 'key' => key, 'project_dir' => dir } Config.write home, data end def self.user c = config User.new(c.github_username, c.key) end def self.project_dir config.project_dir end def self.alternate_config_path Config.alternate_path end def self.config Config.read(home) end end
Version data entries
7 entries across 7 versions & 1 rubygems