Module: Sideload::Github

Extended by:
Github
Included in:
Github
Defined in:
lib/sideload/github.rb

Constant Summary collapse

GITHUB_V3 =
URI("https://api.github.com")

Instance Method Summary collapse

Instance Method Details

#credentials=(arr) ⇒ Object



11
12
13
# File 'lib/sideload/github.rb', line 11

def credentials=(arr)
  @user, @pass = arr
end

#delete(full_path, target) ⇒ Object

Raises:

  • (RuntimeError)


28
29
30
# File 'lib/sideload/github.rb', line 28

def delete(full_path, target)
  raise RuntimeError.new("not implemented")
end

#read(repo, path) ⇒ Object



15
16
17
18
# File 'lib/sideload/github.rb', line 15

def read(repo, path)
  sha = navigate_to(repo, path)
  return traverse(repo, sha)
end

#with(path, fname) ⇒ Object

Raises:

  • (RuntimeError)


20
21
22
# File 'lib/sideload/github.rb', line 20

def with(path, fname)
  raise RuntimeError.new("not implemented")
end

#write(full_path, target, content) ⇒ Object

Raises:

  • (RuntimeError)


24
25
26
# File 'lib/sideload/github.rb', line 24

def write(full_path, target, content)
  raise RuntimeError.new("not implemented")
end