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

Inherits:
Avm::Git::Commit
  • Object
show all
Includes:
EacRubyUtils::Console::Speaker, EacRubyUtils::SimpleCache
Defined in:
lib/avmtrf1/git/push_large/source_commit.rb,
lib/avmtrf1/git/push_large/source_commit/_push.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(push_large, sha1) ⇒ SourceCommit

Returns a new instance of SourceCommit.



19
20
21
22
# File 'lib/avmtrf1/git/push_large/source_commit.rb', line 19

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.



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

def no_lfs_max_size
  @no_lfs_max_size
end

#push_largeObject (readonly)

Returns the value of attribute push_large.



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

def push_large
  @push_large
end

#sha1Object (readonly)

Returns the value of attribute sha1.



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

def sha1
  @sha1
end

Instance Method Details

#fs_cacheObject



35
36
37
# File 'lib/avmtrf1/git/push_large/source_commit.rb', line 35

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

#runObject



24
25
26
27
28
29
30
31
32
33
# File 'lib/avmtrf1/git/push_large/source_commit.rb', line 24

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