コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }