def copy_from_template(template_disk, destination)
      Log.debug "Copying from template #{template_disk} to #{destination}"
      raise "Template does not exist" if not template_exist?(template_disk)
      source = File.join(@templates_dir, File.basename(template_disk))
      Net::SSH.start(@address, @user, :password => @password) do |ssh|
        Log.debug "Clone disk #{source} to #{destination}"
        Log.debug ssh.exec!("vmkfstools -i #{source} --diskformat thin #{destination} 2>&1")
      end
    end
def copy_from_template(template_disk, destination)
      Log.debug "Copying from template #{template_disk} to #{destination}"
      raise "Template does not exist" if not template_exist?(template_disk)
      source = File.join(@templates_dir, File.basename(template_disk))
      Net::SSH.start(@address, @user, :password => @password) do |ssh|
        Log.debug "Clone disk #{source} to #{destination}"
        Log.debug ssh.exec!("vmkfstools -i #{source} --diskformat thin #{destination} 2>&1")
      end
    end
Expects vmdk source file path and destination path

 copy_from_template "/home/fooser/my.vmdk", "/vmfs/volumes/datastore1/foovm/foovm.vmdk"

 Destination directory must exist otherwise rises exception