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

Version Path
rake_docker-2.4.0.pre.13 lib/rake_docker/tasks/clean.rb
rake_docker-2.4.0.pre.12 lib/rake_docker/tasks/clean.rb
rake_docker-2.4.0.pre.11 lib/rake_docker/tasks/clean.rb
rake_docker-2.4.0.pre.10 lib/rake_docker/tasks/clean.rb
rake_docker-2.4.0.pre.9 lib/rake_docker/tasks/clean.rb
rake_docker-2.4.0.pre.8 lib/rake_docker/tasks/clean.rb
rake_docker-2.4.0.pre.7 lib/rake_docker/tasks/clean.rb
rake_docker-2.4.0.pre.6 lib/rake_docker/tasks/clean.rb
rake_docker-2.4.0.pre.5 lib/rake_docker/tasks/clean.rb
rake_docker-2.4.0.pre.4 lib/rake_docker/tasks/clean.rb
rake_docker-2.4.0.pre.3 lib/rake_docker/tasks/clean.rb
rake_docker-2.4.0.pre.2 lib/rake_docker/tasks/clean.rb
rake_docker-2.4.0.pre.1 lib/rake_docker/tasks/clean.rb
rake_docker-2.3.0 lib/rake_docker/tasks/clean.rb
rake_docker-2.2.0.pre.1 lib/rake_docker/tasks/clean.rb
rake_docker-2.1.0 lib/rake_docker/tasks/clean.rb
rake_docker-2.0.0.pre.2 lib/rake_docker/tasks/clean.rb
rake_docker-1.4.0.pre.1 lib/rake_docker/tasks/clean.rb