Class: GitMedia::Transport::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/git-media/transport.rb

Direct Known Subclasses

Local, S3, Scp

Instance Method Summary collapse

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 ##

Returns:

  • (Boolean)


17
18
19
# File 'lib/git-media/transport.rb', line 17

def read?
  false
end

#write?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/git-media/transport.rb', line 21

def write?
  false
end