Sha256: 8f756068c4a1e4a7a17457dfcb9b33b41918b081d443c2a14c5120d22c1d22e4
Contents?: true
Size: 470 Bytes
Versions: 16
Compression:
Stored size: 470 Bytes
Contents
# frozen_string_literal: true require 'rake_factory' module RakeDocker module Tasks class Clean < RakeFactory::Task default_name :clean default_description(RakeFactory::DynamicValue.new do |t| "Clean #{t.image_name} image directory" end) 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
16 entries across 16 versions & 1 rubygems