Class: LogicalConstruct::UnpackTarballs::RemoveFilesNotInArchives
- Inherits:
-
TarballTask
- Object
- Mattock::Rake::FileCommandTask
- TarballTask
- LogicalConstruct::UnpackTarballs::RemoveFilesNotInArchives
show all
- Defined in:
- lib/logical-construct/archive-tasks.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Methods inherited from TarballTask
#action_flag, #add_options, #default_configuration, #tar_command, #tar_command_without_directory
Instance Attribute Details
#stray_files ⇒ Object
Returns the value of attribute stray_files.
218
219
220
|
# File 'lib/logical-construct/archive-tasks.rb', line 218
def stray_files
@stray_files
end
|
Instance Method Details
#command ⇒ Object
253
254
255
|
# File 'lib/logical-construct/archive-tasks.rb', line 253
def command
cmd("rm", "-f", *stray_files)
end
|
#needed? ⇒ Boolean
247
248
249
250
251
|
# File 'lib/logical-construct/archive-tasks.rb', line 247
def needed?
stray_files.any? do |path|
File.exists?(path)
end
end
|
#resolve_configuration ⇒ Object
220
221
222
223
224
|
# File 'lib/logical-construct/archive-tasks.rb', line 220
def resolve_configuration
resolve_paths
super
end
|