public static bool ProGetDeleteAsset(this ICakeContext context, string assetUri, ProGetConfiguration config) { if (context == null) { throw new ArgumentNullException(nameof(context)); } if (config == null) { throw new ArgumentNullException(nameof(config)); } var asset = new ProGetAssetPusher(context.Log, config); return asset.DeleteAsset(assetUri); }
public static void ProGetPushAsset(this ICakeContext context, FilePath assetPath, string assetUri, ProGetConfiguration config) { if (context == null) { throw new ArgumentNullException(nameof(context)); } if (config == null) { throw new ArgumentNullException(nameof(config)); } var asset = new ProGetAssetPusher(context.Log, config); asset.Publish(assetPath, assetUri); }