Sha256: 56e38d4797ece0ebb10e9d315079f0c1c8c0a3cf64d579635fb69e3f3312e31b
Contents?: true
Size: 893 Bytes
Versions: 1
Compression:
Stored size: 893 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, config_path) data = { 'github_username' => github_username, 'key' => key, 'project_dir' => dir } Config.write(config_path, 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
exercism-0.0.19 | lib/exercism.rb |