lib/uricp/strategy/piped_cache.rb in uricp-0.0.23 vs lib/uricp/strategy/piped_cache.rb in uricp-0.0.24
- old
+ new
@@ -2,11 +2,10 @@
module Uricp::Strategy
class PipedCache
include Uricp::Strategy::Common
include Uricp::Strategy::CacheCommon
- include Methadone::SH
def appropriate?
with_active_cache do
case from.scheme
when 'pipe'
@@ -24,10 +23,10 @@
def proposal
@proposed_options = options.dup
@proposed_options['sweep'] = [temp_cache_file, cache_file]
image_spec_to_check = rbd_cache_image_spec(to)
- if to.scheme == 'rbd' && !rbd_cache_image_exists?(image_spec_to_check)
+ if to.scheme == 'rbd'
@proposed_options['rbd_cache_name'] = image_spec_to_check
end
@proposed_options.delete('cache')
@proposed_options.delete('cache_name')
self