Sha256: 900ea4431b7ee363f764a3ee44a098f46240f3d5c5ec0922b97ef20e1ce80fec

Contents?: true

Size: 825 Bytes

Versions: 1

Compression:

Stored size: 825 Bytes

Contents

module HashiCorp

    module VagrantVMwarefusion

        module Driver

            class Fusion

                def snapshot_take
                    vmrun("snapshot", "#{vmx_path}", "vagrant-snap-#{Time.now.to_i}")
                end

                def snapshot_rollback(bootmode)
                   vmrun("revertToSnapshot", "#{vmx_path}", snapshot_list.first)
                   start
                end

                def snapshot_list
                    snapshots = []
                    vmrun("listSnapshots", "#{vmx_path}").stdout.split("\n").each do |line|
                        if line =~ /^vagrant-snap-/
                            snapshots << line
                        end
                    end
                    snapshots.sort
                end

            end

        end

    end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vagrant-zz-multiprovider-snap-0.0.1 lib/vagrant-multiprovider-snap/providers/vmware_fusion/driver/base.rb