Sha256: 4f8159ef2784f3a9199311d9d303a500ee009791bb791ba1d2ee8779ccec468d
Contents?: true
Size: 531 Bytes
Versions: 1
Compression:
Stored size: 531 Bytes
Contents
require_relative '../../utils/vagrantfile_manager' require 'fileutils' module VagrantClone class Docker def initialize(options, env) env.ui.info "making clone of VM: #{options[:origin_id]} to image #{options[:cloned_image_name]}" `docker commit -p #{options[:origin_id]} #{options[:cloned_image_name]}` raise VagrantClone::Errors::DockerCloningError if $?.exitstatus != 0 env.ui.info "clone of VM: #{options[:origin_id]} to image #{options[:cloned_image_name]} created successfully" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
vagrant-clone-0.0.1 | lib/vagrant-clone/command/provider/docker.rb |