Class: Avmtrf1::Git::PushLarge
- Inherits:
-
Object
- Object
- Avmtrf1::Git::PushLarge
- Includes:
- EacRubyUtils::Console::Speaker, EacRubyUtils::SimpleCache
- Defined in:
- lib/avmtrf1/git/push_large.rb,
lib/avmtrf1/git/push_large/_utils.rb,
lib/avmtrf1/git/push_large/lfs_commit.rb,
lib/avmtrf1/git/push_large/source_commit.rb,
lib/avmtrf1/git/push_large/lfs_commit/_cache.rb,
lib/avmtrf1/git/push_large/lfs_commit/_04_push.rb,
lib/avmtrf1/git/push_large/lfs_commit/_helpers.rb,
lib/avmtrf1/git/push_large/source_commit/_push.rb,
lib/avmtrf1/git/push_large/lfs_commit/_03_commit_changes.rb,
lib/avmtrf1/git/push_large/lfs_commit/_02_track_large_files.rb,
lib/avmtrf1/git/push_large/lfs_commit/_00_checkout_previous_revision.rb,
lib/avmtrf1/git/push_large/lfs_commit/_01_cherry_pick_source_revision.rb
Defined Under Namespace
Classes: LfsCommit, SourceCommit
Instance Attribute Summary collapse
-
#git ⇒ Object
readonly
Returns the value of attribute git.
-
#last_pushed_revision ⇒ Object
readonly
Returns the value of attribute last_pushed_revision.
-
#remote_name ⇒ Object
readonly
Returns the value of attribute remote_name.
-
#source_ref ⇒ Object
readonly
Returns the value of attribute source_ref.
-
#target_ref ⇒ Object
readonly
Returns the value of attribute target_ref.
Class Method Summary collapse
Instance Method Summary collapse
- #fs_cache ⇒ Object
-
#initialize(git_local_path, remote_name, source_ref, target_ref) ⇒ PushLarge
constructor
A new instance of PushLarge.
- #run ⇒ Object
Constructor Details
#initialize(git_local_path, remote_name, source_ref, target_ref) ⇒ PushLarge
Returns a new instance of PushLarge.
20 21 22 23 24 25 26 |
# File 'lib/avmtrf1/git/push_large.rb', line 20 def initialize(git_local_path, remote_name, source_ref, target_ref) @git = ::EacLauncher::Git::Base.new(git_local_path) @remote_name = remote_name @source_ref = source_ref @target_ref = target_ref @last_pushed_revision = nil end |
Instance Attribute Details
#git ⇒ Object (readonly)
Returns the value of attribute git.
18 19 20 |
# File 'lib/avmtrf1/git/push_large.rb', line 18 def git @git end |
#last_pushed_revision ⇒ Object (readonly)
Returns the value of attribute last_pushed_revision.
18 19 20 |
# File 'lib/avmtrf1/git/push_large.rb', line 18 def last_pushed_revision @last_pushed_revision end |
#remote_name ⇒ Object (readonly)
Returns the value of attribute remote_name.
18 19 20 |
# File 'lib/avmtrf1/git/push_large.rb', line 18 def remote_name @remote_name end |
#source_ref ⇒ Object (readonly)
Returns the value of attribute source_ref.
18 19 20 |
# File 'lib/avmtrf1/git/push_large.rb', line 18 def source_ref @source_ref end |
#target_ref ⇒ Object (readonly)
Returns the value of attribute target_ref.
18 19 20 |
# File 'lib/avmtrf1/git/push_large.rb', line 18 def target_ref @target_ref end |
Class Method Details
.bytes_size(size) ⇒ Object
7 8 9 10 11 12 |
# File 'lib/avmtrf1/git/push_large/_utils.rb', line 7 def bytes_size(size) return 'NONE' if size.blank? b = "#{size} B" "#{::Filesize.from(b).pretty} (#{b})" end |