Class: Uricp::Strategy::Cleaner
- Inherits:
-
Object
- Object
- Uricp::Strategy::Cleaner
- Includes:
- Common
- Defined in:
- lib/uricp/strategy/cleaner.rb
Constant Summary
Constants included from Common
Uricp::Strategy::Common::PIPE_URI
Instance Attribute Summary
Attributes included from Common
Attributes included from CurlPrimitives
Instance Method Summary collapse
Methods included from Common
#all_local_files?, #always_write_sparse?, #compression_required?, #conversion_required?, #encoding, #file_source?, #format_change?, #get_temp_filename, #initialize, #lz4?, #lz4_source?, #proposed_path, #qcow2?, #raw_target?, #segmented?, #sequence_complete?, #supported_source?, #temp_uri, #unsupported_transfer
Methods included from CurlPrimitives
#authentication, #curl_command, #curl_download_to_pipe, #curl_manifest, #curl_upload_from, #from, #from=, #http_authentication?, #to, #to=
Instance Method Details
#appropriate? ⇒ Boolean
7 8 9 10 11 12 13 |
# File 'lib/uricp/strategy/cleaner.rb', line 7 def appropriate? if ['clean'] && sequence_complete? return proposal end debug "#{self.class.name}: not appropriate" false end |
#command ⇒ Object
15 16 17 |
# File 'lib/uricp/strategy/cleaner.rb', line 15 def command "rm -f #{['clean'].join(' ')};" end |
#proposal ⇒ Object
19 20 21 22 23 |
# File 'lib/uricp/strategy/cleaner.rb', line 19 def proposal @proposed_options = .dup @proposed_options.delete('clean') self end |