Class: Gemvault::VaultUpgrade::GemCopy
- Inherits:
-
Object
- Object
- Gemvault::VaultUpgrade::GemCopy
- Defined in:
- lib/gemvault/vault_upgrade.rb
Overview
Copies gems from a source vault into a target vault, preserving each gem's stored timestamp. Holds the two endpoints so the per-gem call takes only the entry.
Instance Method Summary collapse
Instance Method Details
#call(entry) ⇒ Object
29 30 31 32 33 |
# File 'lib/gemvault/vault_upgrade.rb', line 29 def call(entry) source.with_gem_file(entry) do |gem_path| target.add(gem_path, created_at: entry.created_at) end end |