Example #1
0
 public bool HasEncryption()
 {
     return(OVF.HasEncryption(OvfEnvelope));
 }
Example #2
0
 public override void ExtractToWorkingDir()
 {
     WorkingDir = OVF.ExtractArchive(PackageSourceFile);
 }
Example #3
0
        /// <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));
        }
Example #4
0
 /// <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);
 }
Example #5
0
 /// <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);
 }