Module: GHFS

Defined in:
lib/github-fs.rb,
lib/github-fs/dir.rb,
lib/github-fs/file.rb,
lib/github-fs/util.rb,
lib/github-fs/config.rb,
lib/github-fs/version.rb,
lib/github-fs/test_helpers.rb

Defined Under Namespace

Modules: TestHelpers, Util Classes: Config, Dir, File

Constant Summary collapse

NotFound =
Class.new(Exception)
ReadOnly =
Class.new(Exception)
VERSION =
'0.0.1'

Class Method Summary collapse

Class Method Details

.apiObject



22
23
24
# File 'lib/github-fs.rb', line 22

def self.api
  @api ||= Octokit::Client.new(access_token: config.github_access_token)
end

.configObject



18
19
20
# File 'lib/github-fs.rb', line 18

def self.config
  GHFS::Config.instance
end