Class: Avmtrf1::Git::PushLarge::SourceCommit

Inherits:
Avm::Git::Commit
  • Object
show all
Defined in:
lib/avmtrf1/git/push_large/source_commit.rb,
lib/avmtrf1/git/push_large/source_commit/push.rb

Defined Under Namespace

Modules: Push

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(push_large, sha1) ⇒ SourceCommit

Returns a new instance of SourceCommit.



16
17
18
19
# File 'lib/avmtrf1/git/push_large/source_commit.rb', line 16

def initialize(push_large, sha1)
  super(push_large.git, sha1)
  @push_large = push_large
end

Instance Attribute Details

#no_lfs_max_sizeObject (readonly)

Returns the value of attribute no_lfs_max_size.



14
15
16
# File 'lib/avmtrf1/git/push_large/source_commit.rb', line 14

def no_lfs_max_size
  @no_lfs_max_size
end

#push_largeObject (readonly)

Returns the value of attribute push_large.



14
15
16
# File 'lib/avmtrf1/git/push_large/source_commit.rb', line 14

def push_large
  @push_large
end

#sha1Object (readonly)

Returns the value of attribute sha1.



14
15
16
# File 'lib/avmtrf1/git/push_large/source_commit.rb', line 14

def sha1
  @sha1
end

Instance Method Details

#fs_cacheObject



32
33
34
# File 'lib/avmtrf1/git/push_large/source_commit.rb', line 32

def fs_cache
  @fs_cache ||= push_large.fs_cache.child(sha1)
end

#runObject



21
22
23
24
25
26
27
28
29
30
# File 'lib/avmtrf1/git/push_large/source_commit.rb', line 21

def run
  start_banner
  if pushed_revision.read.present?
    success '  * Target revision already pushed'
  else
    before_pushs_banner
    run_pushs
    after_pushs_banner
  end
end