class Rummager::ImageRMITask
Image removal tasks
Public Class Methods
new(task_name, app)
click to toggle source
Calls superclass method
# File lib/rummager/images.rb, line 133 def initialize(task_name, app) super(task_name,app) @actions << Proc.new { puts "removing image '#{@repo}'" if Rake.verbose == true Docker::Image.all(:all => true).each do |img| if img.info['RepoTags'].any? { |s| s.include?(@repo) } begin img.delete(:force => true) rescue Exception => e puts "exception: #{e.message}" if Rake.verbose == true end end end #each } end
Public Instance Methods
needed?()
click to toggle source
# File lib/rummager/images.rb, line 129 def needed? has_repo? end