Method: GitMedia::Sync.upload_local_cache
- Defined in:
- lib/git-media/sync.rb
.upload_local_cache ⇒ Object
35 36 37 38 39 40 41 42 43 44 |
# File 'lib/git-media/sync.rb', line 35 def self.upload_local_cache # find files in media buffer and upload them all_cache = Dir.chdir(GitMedia.get_media_buffer) { Dir.glob('*') } unpushed_files = @push.get_unpushed(all_cache) unpushed_files.each do |sha| puts 'uploading ' + sha[0, 8] @push.push(sha) end # TODO: if --clean, remove them end |