class Uricp::Strategy::PipedCache
Public Instance Methods
appropriate?()
click to toggle source
# File lib/uricp/strategy/piped_cache.rb, line 8 def appropriate? if cache_root case from.scheme when 'pipe' validate_cache! return proposal end debug "#{self.class.name}: not appropriate" else debug "#{self.class.name}: no cacheing requested" end false end
command()
click to toggle source
# File lib/uricp/strategy/piped_cache.rb, line 22 def command "tee #{temp_cache_file} |" end
proposal()
click to toggle source
# File lib/uricp/strategy/piped_cache.rb, line 26 def proposal @proposed_options = options.dup @proposed_options['sweep'] = [temp_cache_file, cache_file] @proposed_options.delete('cache') @proposed_options.delete('cache_name') self end