public bool HasEncryption() { return(OVF.HasEncryption(OvfEnvelope)); }
public override void ExtractToWorkingDir() { WorkingDir = OVF.ExtractArchive(PackageSourceFile); }
/// <summary> /// Check the Envelope to see if the files are compressed. /// </summary> /// <param name="ovfFilename">fullpath/filename to OVF</param> /// <param name="method">out method used: Gzip | BZip2</param> /// <returns>True|False</returns> public bool IsCompressed(string ovfFilename, out string method) { EnvelopeType env = OVF.Load(ovfFilename); return(IsCompressed(env, out method)); }
/// <summary> /// Open the OVF file and compress the uncompressed files. /// </summary> /// <param name="ovfFilename">pull path and filename.</param> /// <param name="method">GZip | BZip2</param> public void CompressOvfFiles(string ovfFilename, string method) { CompressOvfFiles(OVF.Load(ovfFilename), ovfFilename, method, true); }
/// <summary> /// /// </summary> /// <param name="env"></param> /// <param name="ovfilename"></param> /// <param name="method"></param> /// <param name="compress"></param> public void CompressOvfFiles(EnvelopeType env, string ovfilename, string method, bool compress) { ProcessCompression(env, Path.GetDirectoryName(ovfilename), method, compress); OVF.SaveAs(env, ovfilename); }