Пример #1
0
 public override void Write(CustomFileWriter writer)
 {
     using (writer.WriteBlock("- task: Cache@2"))
     {
         using (writer.WriteBlock("inputs:"))
         {
             writer.WriteLine($"key: $(Agent.OS) | {KeyFiles.JoinComma()}");
             writer.WriteLine("restoreKeys: $(Agent.OS)");
             writer.WriteLine($"path: {Path}");
         }
     }
 }
Пример #2
0
 public override void Write(CustomFileWriter writer)
 {
     using (writer.WriteBlock("- task: Cache@2"))
     {
         writer.WriteLine($"displayName: Cache ({Identifier})");
         using (writer.WriteBlock("inputs:"))
         {
             writer.WriteLine($"key: $(Agent.OS) | {Identifier} | {KeyFiles.JoinCommaSpace()}");
             writer.WriteLine($"restoreKeys: $(Agent.OS) | {Identifier}");
             writer.WriteLine($"path: {AdjustedPath}");
         }
     }
 }