Пример #1
0
        public static void AppCenterBuildBranchesList(this ICakeContext context, AppCenterBuildBranchesListSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }
            var arguments = new string[0];
            var runner    = new GenericRunner <AppCenterBuildBranchesListSettings>(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools);

            runner.Run("build branches list", settings ?? new AppCenterBuildBranchesListSettings(), arguments);
        }
Пример #2
0
        public static void AppCenterDistributeGroupsDownload(this ICakeContext context, AppCenterDistributeGroupsDownloadSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }
            var arguments = new string[0];
            var runner    = new GenericRunner <AppCenterDistributeGroupsDownloadSettings>(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools);

            runner.Run("distribute groups download", settings ?? new AppCenterDistributeGroupsDownloadSettings(), arguments);
        }
        public static void AppCenterAnalyticsAppVersions(this ICakeContext context, AppCenterAnalyticsAppVersionsSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }
            var arguments = new string[0];
            var runner    = new GenericRunner <AppCenterAnalyticsAppVersionsSettings>(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools);

            runner.Run("analytics app-versions", settings ?? new AppCenterAnalyticsAppVersionsSettings(), arguments);
        }
        public static void AppCenterTestPrepareCalabash(this ICakeContext context, AppCenterTestPrepareCalabashSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }
            var arguments = new string[0];
            var runner    = new GenericRunner <AppCenterTestPrepareCalabashSettings>(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools);

            runner.Run("test prepare calabash", settings ?? new AppCenterTestPrepareCalabashSettings(), arguments);
        }
Пример #5
0
        public static void AppCenterCrashesUploadMappings(this ICakeContext context, AppCenterCrashesUploadMappingsSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }
            var arguments = new string[0];
            var runner    = new GenericRunner <AppCenterCrashesUploadMappingsSettings>(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools);

            runner.Run("crashes upload-mappings", settings ?? new AppCenterCrashesUploadMappingsSettings(), arguments);
        }
        public static void AppCenterDistributeReleasesEditNotes(this ICakeContext context, AppCenterDistributeReleasesEditNotesSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }
            var arguments = new string[0];
            var runner    = new GenericRunner <AppCenterDistributeReleasesEditNotesSettings>(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools);

            runner.Run("distribute releases edit-notes", settings ?? new AppCenterDistributeReleasesEditNotesSettings(), arguments);
        }
Пример #7
0
        public static IEnumerable <string> AppCenterDistributeReleasesAddDestinationWithResult(this ICakeContext context, AppCenterDistributeReleasesAddDestinationSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }
            var arguments = new string[0];
            var runner    = new GenericRunner <AppCenterDistributeReleasesAddDestinationSettings>(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools);

            return(runner.RunWithResult("distribute releases add-destination", settings ?? new AppCenterDistributeReleasesAddDestinationSettings(), arguments));
        }
        public static IEnumerable <string> AppCenterBuildLogsWithResult(this ICakeContext context, AppCenterBuildLogsSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }
            var arguments = new string[0];
            var runner    = new GenericRunner <AppCenterBuildLogsSettings>(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools);

            return(runner.RunWithResult("build logs", settings ?? new AppCenterBuildLogsSettings(), arguments));
        }
Пример #9
0
        public static void AppCenterTokensCreate(this ICakeContext context, AppCenterTokensCreateSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }
            var arguments = new string[0];
            var runner    = new GenericRunner <AppCenterTokensCreateSettings>(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools);

            runner.Run("tokens create", settings ?? new AppCenterTokensCreateSettings(), arguments);
        }
        public static void AppCenterCodepushReleaseCordova(this ICakeContext context, AppCenterCodepushReleaseCordovaSettings settings)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }
            var arguments = new string[0];
            var runner    = new GenericRunner <AppCenterCodepushReleaseCordovaSettings>(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools);

            runner.Run("codepush release-cordova", settings ?? new AppCenterCodepushReleaseCordovaSettings(), arguments);
        }
Пример #11
0
        public static IEnumerable <string> AppCenterAppsSetCurrentWithResult(this ICakeContext context, AppCenterAppsSetCurrentSettings settings, string app)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }
            if (string.IsNullOrEmpty(app))
            {
                throw new ArgumentNullException(nameof(app));
            }
            var arguments = new string[] { app };
            var runner    = new GenericRunner <AppCenterAppsSetCurrentSettings>(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools);

            return(runner.RunWithResult("apps set-current", settings ?? new AppCenterAppsSetCurrentSettings(), arguments));
        }
        public static IEnumerable <string> AppCenterCodepushDeploymentRemoveWithResult(this ICakeContext context, AppCenterCodepushDeploymentRemoveSettings settings, string deploymentName)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }
            if (string.IsNullOrEmpty(deploymentName))
            {
                throw new ArgumentNullException(nameof(deploymentName));
            }
            var arguments = new string[] { deploymentName };
            var runner    = new GenericRunner <AppCenterCodepushDeploymentRemoveSettings>(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools);

            return(runner.RunWithResult("codepush deployment remove", settings ?? new AppCenterCodepushDeploymentRemoveSettings(), arguments));
        }
Пример #13
0
        public static void AppCenterCodepushDeploymentHistory(this ICakeContext context, AppCenterCodepushDeploymentHistorySettings settings, string deploymentName)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }
            if (string.IsNullOrEmpty(deploymentName))
            {
                throw new ArgumentNullException(nameof(deploymentName));
            }
            var arguments = new string[] { deploymentName };
            var runner    = new GenericRunner <AppCenterCodepushDeploymentHistorySettings>(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools);

            runner.Run("codepush deployment history", settings ?? new AppCenterCodepushDeploymentHistorySettings(), arguments);
        }
        public static IEnumerable <string> AppCenterSetupAutocompleteWithResult(this ICakeContext context, AppCenterSetupAutocompleteSettings settings, string shellProfilePath)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }
            if (string.IsNullOrEmpty(shellProfilePath))
            {
                throw new ArgumentNullException(nameof(shellProfilePath));
            }
            var arguments = new string[] { shellProfilePath };
            var runner    = new GenericRunner <AppCenterSetupAutocompleteSettings>(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools);

            return(runner.RunWithResult("setup-autocomplete", settings ?? new AppCenterSetupAutocompleteSettings(), arguments));
        }
        public static IEnumerable <string> AppCenterDistributeReleasesEditWithResult(this ICakeContext context, AppCenterDistributeReleasesEditSettings settings, string state)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }
            if (string.IsNullOrEmpty(state))
            {
                throw new ArgumentNullException(nameof(state));
            }
            var arguments = new string[] { state };
            var runner    = new GenericRunner <AppCenterDistributeReleasesEditSettings>(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools);

            return(runner.RunWithResult("distribute releases edit", settings ?? new AppCenterDistributeReleasesEditSettings(), arguments));
        }
Пример #16
0
        public static IEnumerable <string> AppCenterTokensDeleteWithResult(this ICakeContext context, AppCenterTokensDeleteSettings settings, string token)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }
            if (string.IsNullOrEmpty(token))
            {
                throw new ArgumentNullException(nameof(token));
            }
            var arguments = new string[] { token };
            var runner    = new GenericRunner <AppCenterTokensDeleteSettings>(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools);

            return(runner.RunWithResult("tokens delete", settings ?? new AppCenterTokensDeleteSettings(), arguments));
        }
        public static IEnumerable <string> AppCenterCrashesUploadMissingSymbolsWithResult(this ICakeContext context, AppCenterCrashesUploadMissingSymbolsSettings settings, string searchPath)
        {
            if (context == null)
            {
                throw new ArgumentNullException("context");
            }
            if (string.IsNullOrEmpty(searchPath))
            {
                throw new ArgumentNullException(nameof(searchPath));
            }
            var arguments = new string[] { searchPath };
            var runner    = new GenericRunner <AppCenterCrashesUploadMissingSymbolsSettings>(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools);

            return(runner.RunWithResult("crashes upload-missing-symbols", settings ?? new AppCenterCrashesUploadMissingSymbolsSettings(), arguments));
        }