Class: Itamae::Backend::Docker
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#get_command, #host_inventory, #initialize, #receive_file, #run_command, #send_directory, #send_file
Constructor Details
This class inherits a constructor from Itamae::Backend::Base
Instance Method Details
#finalize ⇒ Object
295 296 297 298 299 300 301 302 303 |
# File 'lib/itamae/backend.rb', line 295 def finalize image = @backend.commit_container /\A(?<repo>.+?)(?:|:(?<tag>[^:]+))\z/.match(@options[:tag]) do |m| image.tag(repo: m[:repo], tag: m[:tag]) end = "Image created: #{image.id}" << ", and tagged as #{@options[:tag]}" if @options[:tag] Itamae.logger.info end |