Sha256: d96ed3e29e7707b42f6b3e8d05e80dc92b542aea29169f29e1b84b92599548c4
Contents?: true
Size: 441 Bytes
Versions: 38
Compression:
Stored size: 441 Bytes
Contents
require 'rake_factory' module RakeDocker module Tasks class Clean < RakeFactory::Task default_name :clean default_description RakeFactory::DynamicValue.new { |t| "Clean #{t.image_name} image directory" } parameter :image_name, :required => true parameter :work_directory, :required => true action do |t| rm_rf File.join(t.work_directory, t.image_name) end end end end
Version data entries
38 entries across 38 versions & 1 rubygems