Class: Ruboty::Docker::Actions::Rmi
- Defined in:
- lib/ruboty/docker/actions/rmi.rb
Constant Summary
Constants inherited from Base
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Ruboty::Docker::Actions::Base
Instance Method Details
#call ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/ruboty/docker/actions/rmi.rb', line 5 def call image_name = [:image_name] .reply("Deleting from #{image_name}...") image = ::Docker::Image.get(image_name).remove(force: true) .reply(image, code: true) if [:debug] == ' -D ' .reply image rescue => e value = [e.class.name, e., e.backtrace].join("\n") .reply value ensure end |