コード例 #1
0
ファイル: Push.cs プロジェクト: danielrbradley/Plywood
        public static void Run(string[] args)
        {
            string comment;
            string directoryPath;
            Guid appKey;
            ControllerConfiguration context;

            ParseArguments(args, out comment, out directoryPath, out appKey, out context);

            var versionsController = new Versions(context);
            var appsController = new Apps(context);
            var revision = appsController.PushAppRevision(appKey);
            var newVersion = new Version()
            {
                VersionNumber = revision,
                Comment = comment,
                AppKey = appKey,
            };
            versionsController.PushVersion(new DirectoryInfo(directoryPath), newVersion.Key);
            versionsController.CreateVersion(newVersion);
        }