Class: Avmtrf1::Git::PushLarge::SourceCommit
- Inherits:
-
Avm::Git::Commit
- Object
- Avm::Git::Commit
- Avmtrf1::Git::PushLarge::SourceCommit
- 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
-
#no_lfs_max_size ⇒ Object
readonly
Returns the value of attribute no_lfs_max_size.
-
#push_large ⇒ Object
readonly
Returns the value of attribute push_large.
-
#sha1 ⇒ Object
readonly
Returns the value of attribute sha1.
Instance Method Summary collapse
- #fs_cache ⇒ Object
-
#initialize(push_large, sha1) ⇒ SourceCommit
constructor
A new instance of SourceCommit.
- #run ⇒ Object
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_size ⇒ Object (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_large ⇒ Object (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 |
#sha1 ⇒ Object (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_cache ⇒ Object
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 |
#run ⇒ Object
24 25 26 27 28 29 30 31 32 33 |
# File 'lib/avmtrf1/git/push_large/source_commit.rb', line 24 def run if pushed_revision.read.present? success ' * Target revision already pushed' else run_pushs end end |