Sha256: 1eae21f27bd07977ebe0266a93a9330ced964dc23864676bdd7ca860c2cd5b58
Contents?: true
Size: 666 Bytes
Versions: 33
Compression:
Stored size: 666 Bytes
Contents
require 'rake_factory' require_relative '../container' module RakeDocker module Tasks class Destroy < RakeFactory::Task default_name :destroy default_description RakeFactory::DynamicValue.new { |t| "Destroy #{t.container_name ? "#{t.container_name} " : ""}container." } parameter :container_name, :required => true parameter :reporter, default: Container::PrintingReporter.new action do |t| puts "Destroying #{t.container_name} container" destroyer = Container::Destroyer.new( t.container_name, reporter: t.reporter) destroyer.execute end end end end
Version data entries
33 entries across 33 versions & 1 rubygems