Class: GitMedia::Transport::Base
- Inherits:
-
Object
- Object
- GitMedia::Transport::Base
- Defined in:
- lib/git-media/transport.rb
Instance Method Summary collapse
- #get_file(sha, to_file) ⇒ Object
- #get_unpushed(files) ⇒ Object
- #pull(final_file, sha) ⇒ Object
- #push(sha) ⇒ Object
- #put_file(sha, to_file) ⇒ Object
-
#read? ⇒ Boolean
OVERWRITE ##.
- #write? ⇒ Boolean
Instance Method Details
#get_file(sha, to_file) ⇒ Object
25 26 27 |
# File 'lib/git-media/transport.rb', line 25 def get_file(sha, to_file) false end |
#get_unpushed(files) ⇒ Object
33 34 35 |
# File 'lib/git-media/transport.rb', line 33 def get_unpushed(files) files end |
#pull(final_file, sha) ⇒ Object
5 6 7 8 |
# File 'lib/git-media/transport.rb', line 5 def pull(final_file, sha) to_file = GitMedia.media_path(sha) get_file(sha, to_file) end |
#push(sha) ⇒ Object
10 11 12 13 |
# File 'lib/git-media/transport.rb', line 10 def push(sha) from_file = GitMedia.media_path(sha) put_file(sha, from_file) end |
#put_file(sha, to_file) ⇒ Object
29 30 31 |
# File 'lib/git-media/transport.rb', line 29 def put_file(sha, to_file) false end |
#read? ⇒ Boolean
OVERWRITE ##
17 18 19 |
# File 'lib/git-media/transport.rb', line 17 def read? false end |
#write? ⇒ Boolean
21 22 23 |
# File 'lib/git-media/transport.rb', line 21 def write? false end |