Module: Sideload::Github
Constant Summary collapse
- GITHUB_V3 =
URI("https://api.github.com")
Instance Method Summary collapse
- #credentials=(arr) ⇒ Object
- #delete(full_path, target) ⇒ Object
- #read(repo, path) ⇒ Object
- #with(path, fname) ⇒ Object
- #write(full_path, target, content) ⇒ Object
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
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
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
24 25 26 |
# File 'lib/sideload/github.rb', line 24 def write(full_path, target, content) raise RuntimeError.new("not implemented") end |