Example #1
0
        private void PackBuildpackCache()
        {
            Directory.CreateDirectory(this.workspace.Cache);
            string tempFile = Path.ChangeExtension(this.workspace.StagedBuildpackCache, "tar");

            DEAUtilities.TarDirectory(this.workspace.Cache, tempFile);
            DEAUtilities.GzipFile(tempFile, this.workspace.StagedBuildpackCache);
            File.Delete(tempFile);
        }
Example #2
0
        private void PackApp()
        {
            Logger.Debug("Staging task {0}: Packing droplet {1}", this.TaskId, this.workspace.StagedDroplet);
            string tempFile = Path.ChangeExtension(this.workspace.StagedDroplet, "tar");

            DEAUtilities.TarDirectory(this.workspace.StagedDir, tempFile);
            DEAUtilities.GzipFile(tempFile, this.workspace.StagedDroplet);
            File.Delete(tempFile);
        }