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.18.0.pre.3 lib/rake_docker/tasks/clean.rb
rake_docker-2.18.0.pre.2 lib/rake_docker/tasks/clean.rb
rake_docker-2.18.0.pre.1 lib/rake_docker/tasks/clean.rb
rake_docker-2.17.0 lib/rake_docker/tasks/clean.rb
rake_docker-2.16.0.pre.1 lib/rake_docker/tasks/clean.rb
rake_docker-2.15.0 lib/rake_docker/tasks/clean.rb
rake_docker-2.14.0.pre.4 lib/rake_docker/tasks/clean.rb
rake_docker-2.14.0.pre.3 lib/rake_docker/tasks/clean.rb
rake_docker-2.14.0.pre.2 lib/rake_docker/tasks/clean.rb
rake_docker-2.14.0.pre.1 lib/rake_docker/tasks/clean.rb
rake_docker-2.13.0 lib/rake_docker/tasks/clean.rb
rake_docker-2.12.0.pre.2 lib/rake_docker/tasks/clean.rb
rake_docker-2.12.0.pre.1 lib/rake_docker/tasks/clean.rb
rake_docker-2.11.0 lib/rake_docker/tasks/clean.rb
rake_docker-2.10.0.pre.1 lib/rake_docker/tasks/clean.rb
rake_docker-2.9.0 lib/rake_docker/tasks/clean.rb
rake_docker-2.8.0.pre.1 lib/rake_docker/tasks/clean.rb
rake_docker-2.7.0 lib/rake_docker/tasks/clean.rb
rake_docker-2.6.0.pre.1 lib/rake_docker/tasks/clean.rb
rake_docker-2.5.0 lib/rake_docker/tasks/clean.rb