Class: Actions::Pulp::Repository::Presenters::YumPresenter

Inherits:
AbstractSyncPresenter show all
Defined in:
app/lib/actions/pulp/repository/presenters/yum_presenter.rb

Instance Attribute Summary

Attributes inherited from Helpers::Presenter::Base

#action

Instance Method Summary collapse

Methods inherited from AbstractSyncPresenter

#humanized_output

Methods inherited from Helpers::Presenter::Base

#humanized_output, #initialize

Constructor Details

This class inherits a constructor from Actions::Helpers::Presenter::Base

Instance Method Details

#progressObject



6
7
8
9
10
11
12
# File 'app/lib/actions/pulp/repository/presenters/yum_presenter.rb', line 6

def progress
  if sync_task && size_total > 0
    size_done.to_f / size_total
  else
    0.01
  end
end