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

Version Path
rake_docker-2.22.0.pre.3 lib/rake_docker/tasks/clean.rb
rake_docker-2.22.0.pre.2 lib/rake_docker/tasks/clean.rb
rake_docker-2.22.0.pre.1 lib/rake_docker/tasks/clean.rb
rake_docker-2.21.0 lib/rake_docker/tasks/clean.rb
rake_docker-2.20.0.pre.8 lib/rake_docker/tasks/clean.rb
rake_docker-2.20.0.pre.7 lib/rake_docker/tasks/clean.rb
rake_docker-2.20.0.pre.6 lib/rake_docker/tasks/clean.rb
rake_docker-2.20.0.pre.5 lib/rake_docker/tasks/clean.rb
rake_docker-2.20.0.pre.4 lib/rake_docker/tasks/clean.rb
rake_docker-2.20.0.pre.3 lib/rake_docker/tasks/clean.rb
rake_docker-2.20.0.pre.2 lib/rake_docker/tasks/clean.rb
rake_docker-2.20.0.pre.1 lib/rake_docker/tasks/clean.rb
rake_docker-2.19.0 lib/rake_docker/tasks/clean.rb
rake_docker-2.18.0.pre.6 lib/rake_docker/tasks/clean.rb
rake_docker-2.18.0.pre.5 lib/rake_docker/tasks/clean.rb
rake_docker-2.18.0.pre.4 lib/rake_docker/tasks/clean.rb