module Avmtrf1::Git::PushLarge::SourceCommit::Push
def push_with_lfs(lfs_commit)
def push_with_lfs(lfs_commit) if lfs_commit.push_ok? pushed_revision.write(lfs_commit.commit.sha1) success " * Pushed: #{pushed_revision.read}" true else warn ' * Push failed' false end end
def pushed_revision_uncached
def pushed_revision_uncached fs_cache.child('pushed_revision') end
def run_pushs
def run_pushs return if LFS_FILE_MIN_SIZES.any? do |lfs_file_min_size| lfs_commit = ::Avmtrf1::Git::PushLarge::LfsCommit.new(self, lfs_file_min_size) lfs_commit.start_banner push_with_lfs(lfs_commit) end raise 'Push de todos os commits falharam' end