Class: Artifactory::GemImport::Worker::Remover
- Defined in:
- lib/artifactory/gem_import/worker/remover.rb
Constant Summary collapse
- NEVER_DELETE =
This gem is required to let the Artifactory Gem Server work properly.
%w(rubygems-update).freeze
Instance Attribute Summary collapse
-
#only ⇒ Object
readonly
Returns the value of attribute only.
-
#target_repo ⇒ Object
readonly
Returns the value of attribute target_repo.
Instance Method Summary collapse
-
#initialize(target_repo:, only: /.+/) ⇒ Remover
constructor
A new instance of Remover.
- #remove! ⇒ Object
Constructor Details
#initialize(target_repo:, only: /.+/) ⇒ Remover
Returns a new instance of Remover.
10 11 12 13 |
# File 'lib/artifactory/gem_import/worker/remover.rb', line 10 def initialize(target_repo:, only: /.+/) @target_repo = target_repo @only = only end |
Instance Attribute Details
#only ⇒ Object (readonly)
Returns the value of attribute only.
8 9 10 |
# File 'lib/artifactory/gem_import/worker/remover.rb', line 8 def only @only end |
#target_repo ⇒ Object (readonly)
Returns the value of attribute target_repo.
8 9 10 |
# File 'lib/artifactory/gem_import/worker/remover.rb', line 8 def target_repo @target_repo end |
Instance Method Details
#remove! ⇒ Object
15 16 17 18 19 |
# File 'lib/artifactory/gem_import/worker/remover.rb', line 15 def remove! gems.each &method(:process) summary end |