├── .gitignore ├── .gitmodules ├── CODE-OF-CONDUCT.md ├── ChangeLog ├── LICENSE ├── Makefile ├── MonkeyWrench.Builder ├── .gitignore ├── BuildInfo.cs ├── Builder.cs ├── ChangeLog ├── MonkeyWrench.Builder.csproj ├── app.config └── packages.config ├── MonkeyWrench.CmdClient ├── Options.cs ├── README └── WrenchCmdClient.cs ├── MonkeyWrench.DataClasses ├── .gitignore ├── ChangeLog ├── CustomTypes.sql ├── Database │ ├── ChangeLog │ ├── DBAudit.cs │ ├── DBAudit.generated.cs │ ├── DBBuildBotStatus.cs │ ├── DBBuildBotStatus.generated.cs │ ├── DBCommand.cs │ ├── DBCommand.generated.cs │ ├── DBDeleteCondition.cs │ ├── DBEmailIdentity.cs │ ├── DBEmailIdentity.generated.cs │ ├── DBEnvironmentVariable.cs │ ├── DBEnvironmentVariable.generated.cs │ ├── DBFile.cs │ ├── DBFile.generated.cs │ ├── DBFileDeletionDirective.cs │ ├── DBFileDeletionDirective.generated.cs │ ├── DBFileLink.cs │ ├── DBFileLink.generated.cs │ ├── DBGitHubIdentity.cs │ ├── DBGitHubIdentity.generated.cs │ ├── DBHost.cs │ ├── DBHost.generated.cs │ ├── DBHostLane.cs │ ├── DBHostLane.generated.cs │ ├── DBHostLaneView.cs │ ├── DBHostLaneView.generated.cs │ ├── DBHostStatusView.generated.cs │ ├── DBIrcIdentity.cs │ ├── DBIrcIdentity.generated.cs │ ├── DBLane.cs │ ├── DBLane.generated.cs │ ├── DBLaneDeletionDirective.cs │ ├── DBLaneDeletionDirective.generated.cs │ ├── DBLaneDeletionDirectiveView.cs │ ├── DBLaneDeletionDirectiveView.generated.cs │ ├── DBLaneDependency.cs │ ├── DBLaneDependency.generated.cs │ ├── DBLaneDependencyCondition.cs │ ├── DBLaneNotification.cs │ ├── DBLaneNotification.generated.cs │ ├── DBLaneTag.cs │ ├── DBLaneTag.generated.cs │ ├── DBLanefile.cs │ ├── DBLanefile.generated.cs │ ├── DBLanefiles.cs │ ├── DBLanefiles.generated.cs │ ├── DBLogin.cs │ ├── DBLogin.generated.cs │ ├── DBLoginView.cs │ ├── DBLoginView.generated.cs │ ├── DBMasterHost.cs │ ├── DBMasterHost.generated.cs │ ├── DBMatchMode.cs │ ├── DBNotification.cs │ ├── DBNotification.generated.cs │ ├── DBNotificationMode.cs │ ├── DBNotificationType.cs │ ├── DBPerson.cs │ ├── DBPerson.generated.cs │ ├── DBQueueManagement.cs │ ├── DBRecord.cs │ ├── DBRelease.cs │ ├── DBRelease.generated.cs │ ├── DBRevision.cs │ ├── DBRevision.generated.cs │ ├── DBRevisionWork.cs │ ├── DBRevisionWork.generated.cs │ ├── DBRevisionWorkView.cs │ ├── DBRevisionWorkView.generated.cs │ ├── DBRevisionWorkView2.cs │ ├── DBRevisionWorkView2.generated.cs │ ├── DBState.cs │ ├── DBUserEmail.cs │ ├── DBUserEmail.generated.cs │ ├── DBView.cs │ ├── DBWork.cs │ ├── DBWork.generated.cs │ ├── DBWorkFile.cs │ ├── DBWorkFile.generated.cs │ ├── DBWorkFileView.cs │ ├── DBWorkFileView.generated.cs │ ├── DBWorkView2.cs │ └── DBWorkView2.generated.cs ├── Logic │ ├── BuildBotStatus.cs │ ├── BuildInfoEntry.cs │ ├── ChangeLog │ ├── FindHostResponse.cs │ ├── FindLaneResponse.cs │ ├── FindLaneWithDependenciesResponse.cs │ ├── FindRevisionResponse.cs │ ├── FrontPageResponse.cs │ ├── GetAdminInfoResponse.cs │ ├── GetAuditResponse.cs │ ├── GetBuildBotStatusResponse.cs │ ├── GetBuildInfoResponse.cs │ ├── GetCommandsResponse.cs │ ├── GetFilesForWorkResponse.cs │ ├── GetHostForEditResponse.cs │ ├── GetHostLanesResponse.cs │ ├── GetHostStatusResponse.cs │ ├── GetHostsResponse.cs │ ├── GetIdentitiesResponse.cs │ ├── GetLaneFileForEditResponse.cs │ ├── GetLaneForEditResponse.cs │ ├── GetLaneResponse.cs │ ├── GetLanesResponse.cs │ ├── GetLeftTreeDataResponse.cs │ ├── GetNotificationsResponse.cs │ ├── GetReleasesResponse.cs │ ├── GetRevisionWorkForLaneResponse.cs │ ├── GetRevisionsResponse.cs │ ├── GetUserResponse.cs │ ├── GetUsersResponse.cs │ ├── GetViewLaneDataResponse.cs │ ├── GetViewLaneFileHistoryDataResponse.cs │ ├── GetViewTableDataResponse.cs │ ├── GetViewWorkTableDataResponse.cs │ ├── GetWorkHostHistoryResponse.cs │ ├── LoginResponse.cs │ ├── ReportBuildBotStatusResponse.cs │ ├── ReportBuildStateResponse.cs │ ├── Roles.cs │ ├── WebServiceException.cs │ ├── WebServiceLogin.cs │ └── WebServiceResponse.cs ├── Makefile ├── MonkeyWrench.DataClasses.csproj ├── SqlToCSharp.cs ├── Utilities.cs ├── WebServices.Generated.cs ├── WebServices.cs └── packages.config ├── MonkeyWrench.Database.Manager ├── .gitignore ├── ChangeLog ├── Manager.cs ├── MonkeyWrench.Database.Manager.csproj ├── Properties │ └── AssemblyInfo.cs ├── app.config └── packages.config ├── MonkeyWrench.Database ├── .gitignore ├── ChangeLog ├── DB.cs ├── DeletionDirectives.cs ├── Extensions │ ├── ChangeLog │ ├── DBCommand_Extensions.cs │ ├── DBEnvironmentVariable_Extensions.cs │ ├── DBFileDeletionDirective_Extensions.cs │ ├── DBFile_Extensions.cs │ ├── DBHost_Extensions.cs │ ├── DBLaneDeletionDirectiveView_Extensions.cs │ ├── DBLaneDeletionDirective_Extensions.cs │ ├── DBLaneDependency_Extensions.cs │ ├── DBLane_Extensions.cs │ ├── DBLanefile_Extensions.cs │ ├── DBLoginView_Extensions.cs │ ├── DBLogin_Extensions.cs │ ├── DBPerson_Extensions.cs │ ├── DBRecord_Extensions.cs │ ├── DBRevisionWorkView_Extensions.cs │ ├── DBRevisionWork_Extensions.cs │ ├── DBRevision_Extensions.cs │ ├── DBWorkFileView_Extensions.cs │ ├── DBWorkFile_Extensions.cs │ └── DBWork_Extensions.cs ├── MonkeyWrench.Database.csproj ├── Properties │ └── AssemblyInfo.cs └── packages.config ├── MonkeyWrench.Scheduler ├── .gitignore ├── ChangeLog ├── MonkeyWrench.Scheduler.csproj ├── Updater.cs ├── app.config └── packages.config ├── MonkeyWrench.Test ├── .gitignore ├── Attributes.cs ├── ChangeLog ├── Database.cs ├── GitTest.cs ├── Helpers.cs ├── Makefile ├── MonkeyWrench.Test.csproj ├── Properties │ └── AssemblyInfo.cs ├── Runner.cs ├── SvnTest.cs ├── VCTest.cs └── app.config ├── MonkeyWrench.Web.JSON ├── Global.asax ├── Global.asax.cs ├── Lanes.ashx ├── Lanes.ashx.cs ├── MonkeyWrench.Web.JSON.csproj ├── RecentRevWorks.ashx ├── RecentRevWorks.ashx.cs ├── Utils.cs ├── packages.config └── web.config ├── MonkeyWrench.Web.UI ├── .gitignore ├── Admin.aspx ├── Admin.aspx.cs ├── Admin.aspx.designer.cs ├── BuildBotStatus.aspx ├── BuildBotStatus.aspx.cs ├── BuildBotStatus.aspx.designer.cs ├── BuildBotStatus.js ├── ChangeLog ├── Code │ ├── Authentication.cs │ ├── ChangeLog │ ├── LaneTreeNode.cs │ └── Utils.cs ├── Delete.aspx ├── Delete.aspx.cs ├── Delete.aspx.designer.cs ├── DownloadLatestFile.aspx ├── DownloadLatestFile.aspx.cs ├── DownloadLatestFile.aspx.designer.cs ├── EditHost.aspx ├── EditHost.aspx.cs ├── EditHost.aspx.designer.cs ├── EditHost.js ├── EditHosts.aspx ├── EditHosts.aspx.cs ├── EditHosts.aspx.designer.cs ├── EditHosts.js ├── EditLane.aspx ├── EditLane.aspx.cs ├── EditLane.aspx.designer.cs ├── EditLane.js ├── EditLaneFile.aspx ├── EditLaneFile.aspx.cs ├── EditLaneFile.aspx.designer.cs ├── EditLanes.aspx ├── EditLanes.aspx.cs ├── EditLanes.aspx.designer.cs ├── EditLanes.js ├── EnvironmentVariablesEditor.ascx ├── EnvironmentVariablesEditor.ascx.cs ├── EnvironmentVariablesEditor.ascx.designer.cs ├── ErrorPage.aspx ├── ErrorPage.aspx.cs ├── ErrorPage.aspx.designer.cs ├── GetData.cs ├── GetFile.aspx ├── GetFile.aspx.cs ├── GetFile.aspx.designer.cs ├── GetLatest.aspx ├── GetLatest.aspx.cs ├── GetLatest.aspx.designer.cs ├── GetManifest.aspx ├── GetManifest.aspx.cs ├── GetManifest.aspx.designer.cs ├── GetMetadata.aspx ├── GetMetadata.aspx.cs ├── GetMetadata.aspx.designer.cs ├── GetStatus.aspx ├── GetStatus.aspx.cs ├── GetStatus.aspx.designer.cs ├── Global.asax ├── Global.asax.cs ├── Helpers │ ├── AuthenticationHelper.cs │ ├── GitHubAuthenticationHelper.cs │ └── OauthDataProvider.cs ├── Identities.aspx ├── Identities.aspx.cs ├── Identities.aspx.designer.cs ├── Identities.js ├── Json.aspx ├── Json.aspx.cs ├── Json.aspx.designer.cs ├── Login.aspx ├── Login.aspx.cs ├── Login.aspx.designer.cs ├── Master.js ├── Master.master ├── Master.master.cs ├── Master.master.designer.cs ├── MonkeyWrench.Web.UI.csproj ├── MonkeyWrench.js ├── Notifications.aspx ├── Notifications.aspx.cs ├── Notifications.aspx.designer.cs ├── Properties │ ├── Settings.Designer.cs │ └── Settings.settings ├── Releases.aspx ├── Releases.aspx.cs ├── Releases.aspx.designer.cs ├── ReportCommit.aspx ├── ReportCommit.aspx.cs ├── ReportCommit.aspx.designer.cs ├── ReportGitHubCommit.aspx ├── ReportGitHubCommit.aspx.cs ├── ReportGitHubCommit.aspx.designer.cs ├── SelectLanes.aspx ├── SelectLanes.aspx.cs ├── SelectLanes.aspx.designer.cs ├── User.aspx ├── User.aspx.cs ├── User.aspx.designer.cs ├── User.js ├── Users.aspx ├── Users.aspx.cs ├── Users.aspx.designer.cs ├── ViewAuditEntries.aspx ├── ViewAuditEntries.aspx.cs ├── ViewAuditEntries.aspx.designer.cs ├── ViewHostHistory.aspx ├── ViewHostHistory.aspx.cs ├── ViewHostHistory.aspx.designer.cs ├── ViewHtmlReport.aspx ├── ViewHtmlReport.aspx.cs ├── ViewHtmlReport.aspx.designer.cs ├── ViewHtmlReportEmbedded.aspx ├── ViewHtmlReportEmbedded.aspx.cs ├── ViewHtmlReportEmbedded.aspx.designer.cs ├── ViewLane.aspx ├── ViewLane.aspx.cs ├── ViewLane.aspx.designer.cs ├── ViewLane.js ├── ViewLaneFileHistory.aspx ├── ViewLaneFileHistory.aspx.cs ├── ViewLaneFileHistory.aspx.designer.cs ├── ViewServerLog.aspx ├── ViewServerLog.aspx.cs ├── ViewServerLog.aspx.designer.cs ├── ViewTable.aspx ├── ViewTable.aspx.cs ├── ViewTable.aspx.designer.cs ├── ViewTable.js ├── ViewWorkTable.aspx ├── ViewWorkTable.aspx.cs ├── ViewWorkTable.aspx.designer.cs ├── clientaccesspolicy.xml ├── doc │ ├── ChangeLog │ ├── Configuration.html │ ├── EditLaneHelp.html │ ├── Faq.htm │ ├── Howto.html │ ├── NewServer.html │ ├── Source.html │ └── index.html ├── index.aspx ├── index.aspx.cs ├── index.aspx.designer.cs ├── packages.config ├── res │ ├── default.css │ ├── minus.gif │ ├── moonlight │ │ ├── favicon.ico │ │ ├── logo.png │ │ └── moonlight.css │ ├── plus.gif │ ├── skin.css │ ├── sorttable.js │ └── wrench │ │ ├── favicon.ico │ │ ├── logo.png │ │ └── wrench.css ├── robots.txt └── web.config ├── MonkeyWrench.Web.WebService ├── .gitignore ├── Authentication.cs ├── ChangeLog ├── Download.aspx ├── Download.aspx.cs ├── Download.aspx.designer.cs ├── Global.asax ├── Global.asax.cs ├── Maintenance.cs ├── Makefile ├── MonkeyWrench.Web.WebService.csproj ├── Notification.ashx ├── Notifications │ ├── EmailNotification.cs │ ├── GitHubNotification.cs │ ├── IrcNotification.cs │ └── Notifications.cs ├── README.md ├── Scheduler │ ├── Scheduler.cs │ ├── SchedulerBase.cs │ ├── SchedulerGIT.cs │ └── SchedulerSVN.cs ├── Upload.cs ├── WebNotification.cs ├── WebServices.asmx ├── WebServices.asmx.cs ├── WebServices.wsdl ├── WrenchBuild.cs ├── WsdlGenerator.cmd ├── WsdlGenerator.cs ├── WsdlGenerator.snk ├── WsdlGenerator.xml ├── packages.config └── web.config ├── MonkeyWrench.sln ├── MonkeyWrench ├── .gitignore ├── AssemblyInfo.cs.in ├── Async.cs ├── ChangeLog ├── Configuration.cs ├── Exceptions.cs ├── FileUtilities.cs ├── IDB.cs ├── Job.cs ├── JobWindows.cs ├── Lock.cs ├── Makefile ├── MimeTypes.cs ├── MonkeyWrench.csproj ├── Options.cs ├── Platform.cs ├── ProcessHelper.cs ├── ProcessHelperLinux.cs ├── ProcessHelperMac.cs ├── ProcessHelperWindows.cs ├── ProcessReader.cs ├── SynchronizedStreamWriter.cs ├── generate-assembly-info.rb └── packages.config ├── README ├── class └── lib │ ├── Npgsql.dll │ └── Npgsql.dll.mdb └── scripts ├── ChangeLog ├── build.sh ├── database.sql ├── dbcontrol.sh ├── getcfgvar.pl ├── moonbuilder-clean-tmp.sh ├── moonlight └── setenv.sh ├── postcommit-svn.sh ├── updatemono.sh ├── updater.sh └── web.sh /.gitignore: -------------------------------------------------------------------------------- 1 | updater 2 | Builder.Builder.exe 3 | Builder.Builder.exe.mdb 4 | Builder.Updater.exe 5 | Builder.Updater.exe.mdb 6 | Builder.dll 7 | Builder.dll.mdb 8 | *.suo 9 | *.pdb 10 | *.dll 11 | *.user 12 | *.pidb 13 | *.userprefs 14 | MonkeyWrench.xml 15 | releases 16 | bin 17 | obj 18 | Meebey.SmartIrc4net.xml 19 | packages/ 20 | data/ 21 | tmp/ -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/monkeywrench/729c85203e9bc92128b8f4acb00407b9ec81d405/.gitmodules -------------------------------------------------------------------------------- /CODE-OF-CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Code of Conduct 2 | 3 | This project has adopted the code of conduct defined by the Contributor Covenant 4 | to clarify expected behavior in our community. 5 | 6 | For more information, see the [.NET Foundation Code of Conduct](https://dotnetfoundation.org/code-of-conduct). 7 | -------------------------------------------------------------------------------- /ChangeLog: -------------------------------------------------------------------------------- 1 | 2010-02-25 Rolf Bjarne Kvinge 2 | 3 | * class/lib/Npgsql.dll[.mdb]: Update to 2.0.8. 4 | 5 | 2009-10-19 Rolf Bjarne Kvinge 6 | 7 | * MonkeyWrench.sln: Added new project. 8 | * Makefile: add some convenience targets. 9 | 10 | 2009-07-28 Rolf Bjarne Kvinge 11 | 12 | * Makefile: publish before running wsdl. 13 | 14 | 2009-07-23 Rolf Bjarne Kvinge 15 | 16 | * Makefile: Make publish and install targets synonyms. 17 | 18 | 2009-06-04 Rolf Bjarne Kvinge 19 | 20 | * MonkeyWrench.sln: Added new project. 21 | 22 | 2009-06-03 Rolf Bjarne Kvinge 23 | 24 | * everything: Major rewrite to use a web services instead 25 | of direct database access from buildbots and web ui. Also 26 | included a lot of code reorganization. 27 | 28 | 2009-04-24 Rolf Bjarne Kvinge 29 | 30 | * Builder.csproj: Updated. 31 | 32 | 2009-03-19 Rolf Bjarne Kvinge 33 | 34 | * Builder.csproj: Updated. 35 | 36 | 2009-02-27 Rolf Bjarne Kvinge 37 | 38 | * Builder.sln: 39 | * Builder.csproj: Add changelog/commit message instructions 40 | for MonoDevelop. 41 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Unless explicitly stated, this code is licensed under the 2 | terms of the MIT license, the text of which is duplicated below: 3 | 4 | // Permission is hereby granted, free of charge, to any person obtaining 5 | // a copy of this software and associated documentation files (the 6 | // "Software"), to deal in the Software without restriction, including 7 | // without limitation the rights to use, copy, modify, merge, publish, 8 | // distribute, sublicense, and/or sell copies of the Software, and to 9 | // permit persons to whom the Software is furnished to do so, subject to 10 | // the following conditions: 11 | // 12 | // The above copyright notice and this permission notice shall be 13 | // included in all copies or substantial portions of the Software. 14 | // 15 | // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 16 | // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 17 | // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 18 | // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 19 | // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 20 | // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 21 | // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 22 | 23 | If used outside of MonkeyWrench (with no LICENSE file which 24 | contains the text above), please duplicate this license block 25 | in the actual source files. 26 | 27 | -------------------------------------------------------------------------------- /MonkeyWrench.Builder/.gitignore: -------------------------------------------------------------------------------- 1 | bin 2 | obj 3 | 4 | -------------------------------------------------------------------------------- /MonkeyWrench.Builder/BuildInfo.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * BuildInfo.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | 16 | using MonkeyWrench.DataClasses; 17 | 18 | namespace MonkeyWrench.Builder 19 | { 20 | internal class BuildInfo 21 | { 22 | public int number; 23 | public DBLane lane; 24 | public DBHostLane hostlane; 25 | public DBHost host; 26 | public string host_being_worked_for; /* master host if working for a master host, otherwise host */ 27 | public DBWork work; 28 | public DBCommand command; 29 | public DBRevision revision; 30 | public List environment_variables; 31 | public string BUILDER_DATA_LOG_DIR; 32 | public string BUILDER_DATA_INSTALL_DIR; 33 | public string BUILDER_DATA_SOURCE_DIR; 34 | public string temp_dir; 35 | public DateTime progress_stamp; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /MonkeyWrench.Builder/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /MonkeyWrench.Builder/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /MonkeyWrench.CmdClient/README: -------------------------------------------------------------------------------- 1 | Introduction 2 | ============ 3 | 4 | This is a command line client for wrench. 5 | 6 | Setup 7 | ===== 8 | 9 | Create a configuration file named MonkeyWrench.xml: 10 | 11 | 12 | 13 | 14 | WRENCH WEBSERVICE URL 15 | YOUR WRENCH USEDID 16 | YOUR WRENCH PASSWORD 17 | 18 | 19 | 20 | Usage 21 | ===== 22 | 23 | mono wrenchcl.exe help 24 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/.gitignore: -------------------------------------------------------------------------------- 1 | bin 2 | obj 3 | 4 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/ChangeLog: -------------------------------------------------------------------------------- 1 | 2010-07-14 Rolf Bjarne Kvinge 2 | 3 | * DBLane.generated.cs: Regenerated. 4 | 5 | 2010-06-11 Andrew Jorgensen 6 | 7 | * DBCommand.generated.cs: Add upload_files and 8 | working_directory attributes for a command 9 | 10 | 2010-05-04 Rolf Bjarne Kvinge 11 | 12 | * DBRevisionWorkView.generated.cs: Regenerated. 13 | 14 | 2009-09-10 Rolf Bjarne Kvinge 15 | 16 | * DBRevisionWork.generated.cs: Regenerated. 17 | 18 | * DBQueueManagement.cs: Add a new queue management option: 19 | only build one revisionwork at a time. 20 | 21 | 2009-07-23 Rolf Bjarne Kvinge 22 | 23 | * DBView.cs: 24 | * DBRecord.cs: Update according to DB API changes. 25 | 26 | 2009-06-05 Rolf Bjarne Kvinge 27 | 28 | * DBEnvironmentVariable.cs: Fix buggy variable 29 | parsing. 30 | 31 | 2009-06-04 Rolf Bjarne Kvinge 32 | 33 | * DBRevision.generated.cs: Regenerated. 34 | 35 | 2009-06-04 Rolf Bjarne Kvinge 36 | 37 | * DBWorkFileView.generated.cs: 38 | * DBFile.generated.cs: Regenerated. 39 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBAudit.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DBAudit.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | 14 | /* 15 | * This file has been generated. 16 | * If you modify it you'll loose your changes. 17 | */ 18 | 19 | 20 | using System; 21 | using System.Collections.Generic; 22 | using System.Text; 23 | using System.Data; 24 | using System.Data.Common; 25 | 26 | #pragma warning disable 649 27 | 28 | namespace MonkeyWrench.DataClasses 29 | { 30 | public partial class DBAudit : DBRecord 31 | { 32 | public const string TableName = "Audit"; 33 | 34 | public DBAudit () 35 | { 36 | } 37 | 38 | public DBAudit (IDataReader reader) 39 | : base (reader) 40 | { 41 | } 42 | } 43 | } 44 | 45 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBAudit.generated.cs: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * This file is autogenerated by the SqlToCSharp.cs tool. 4 | * All modifications will be lost when the tool is ran. 5 | */ 6 | 7 | 8 | using System; 9 | using System.Collections.Generic; 10 | using System.Data; 11 | using System.Data.Common; 12 | using System.IO; 13 | using System.Reflection; 14 | 15 | #pragma warning disable 649 16 | 17 | namespace MonkeyWrench.DataClasses 18 | { 19 | public partial class DBAudit : DBRecord 20 | { 21 | private int? _person_id; 22 | private string _person_login; 23 | private string _ip; 24 | private DateTime _stamp; 25 | private string _action; 26 | 27 | public int? @person_id { get { return _person_id; } set { _person_id = value; } } 28 | public string @person_login { get { return _person_login; } set { _person_login = value; } } 29 | public string @ip { get { return _ip; } set { _ip = value; } } 30 | public DateTime @stamp { get { return _stamp; } set { _stamp = value; } } 31 | public string @action { get { return _action; } set { _action = value; } } 32 | 33 | 34 | public override string Table 35 | { 36 | get { return "Audit"; } 37 | } 38 | 39 | 40 | public override string [] Fields 41 | { 42 | get 43 | { 44 | return new string [] { "person_id", "person_login", "ip", "stamp", "action" }; 45 | } 46 | } 47 | 48 | 49 | } 50 | } 51 | 52 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBBuildBotStatus.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DBBuildBotStatus.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | 14 | /* 15 | * This file has been generated. 16 | * If you modify it you'll loose your changes. 17 | */ 18 | 19 | 20 | using System; 21 | using System.Collections.Generic; 22 | using System.Text; 23 | using System.Data; 24 | using System.Data.Common; 25 | 26 | #pragma warning disable 649 27 | 28 | namespace MonkeyWrench.DataClasses 29 | { 30 | public partial class DBBuildBotStatus : DBRecord 31 | { 32 | public const string TableName = "BuildBotStatus"; 33 | 34 | public DBBuildBotStatus () 35 | { 36 | } 37 | 38 | public DBBuildBotStatus (IDataReader reader) 39 | : base (reader) 40 | { 41 | } 42 | } 43 | } 44 | 45 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBBuildBotStatus.generated.cs: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * This file is autogenerated by the SqlToCSharp.cs tool. 4 | * All modifications will be lost when the tool is ran. 5 | */ 6 | 7 | 8 | using System; 9 | using System.Collections.Generic; 10 | using System.Data; 11 | using System.Data.Common; 12 | using System.IO; 13 | using System.Reflection; 14 | 15 | #pragma warning disable 649 16 | 17 | namespace MonkeyWrench.DataClasses 18 | { 19 | public partial class DBBuildBotStatus : DBRecord 20 | { 21 | private int _host_id; 22 | private string _version; 23 | private string _description; 24 | private DateTime _report_date; 25 | 26 | public int @host_id { get { return _host_id; } set { _host_id = value; } } 27 | public string @version { get { return _version; } set { _version = value; } } 28 | public string @description { get { return _description; } set { _description = value; } } 29 | public DateTime @report_date { get { return _report_date; } set { _report_date = value; } } 30 | 31 | 32 | public override string Table 33 | { 34 | get { return "BuildBotStatus"; } 35 | } 36 | 37 | 38 | public override string [] Fields 39 | { 40 | get 41 | { 42 | return new string [] { "host_id", "version", "description", "report_date" }; 43 | } 44 | } 45 | 46 | 47 | } 48 | } 49 | 50 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBCommand.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DBCommand.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Text; 16 | using System.Data; 17 | 18 | namespace MonkeyWrench.DataClasses 19 | { 20 | public partial class DBCommand 21 | { 22 | public const string TableName = "Command"; 23 | 24 | public DBCommand() 25 | { 26 | } 27 | 28 | public DBCommand(IDataReader reader) 29 | : base(reader) 30 | { 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBDeleteCondition.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DBDeleteCondition.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | namespace MonkeyWrench.DataClasses 14 | { 15 | public enum DBDeleteCondition 16 | { 17 | Never = 0, 18 | AfterXDays = 1, 19 | AfterXBuiltRevisions = 2 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBEmailIdentity.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DBEmailIdentity.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Text; 16 | using System.Data; 17 | using System.Data.Common; 18 | 19 | #pragma warning disable 649 20 | 21 | namespace MonkeyWrench.DataClasses 22 | { 23 | public partial class DBEmailIdentity : DBRecord 24 | { 25 | public const string TableName = "EmailIdentity"; 26 | 27 | public DBEmailIdentity () 28 | { 29 | } 30 | 31 | public DBEmailIdentity (IDataReader reader) 32 | : base (reader) 33 | { 34 | } 35 | } 36 | } 37 | 38 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBEmailIdentity.generated.cs: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * This file is autogenerated by the SqlToCSharp.cs tool. 4 | * All modifications will be lost when the tool is ran. 5 | */ 6 | 7 | 8 | using System; 9 | using System.Collections.Generic; 10 | using System.Data; 11 | using System.Data.Common; 12 | using System.IO; 13 | using System.Reflection; 14 | 15 | #pragma warning disable 649 16 | 17 | namespace MonkeyWrench.DataClasses 18 | { 19 | public partial class DBEmailIdentity : DBRecord 20 | { 21 | private string _name; 22 | private string _email; 23 | private string _password; 24 | 25 | public string @name { get { return _name; } set { _name = value; } } 26 | public string @email { get { return _email; } set { _email = value; } } 27 | public string @password { get { return _password; } set { _password = value; } } 28 | 29 | 30 | public override string Table 31 | { 32 | get { return "EmailIdentity"; } 33 | } 34 | 35 | 36 | public override string [] Fields 37 | { 38 | get 39 | { 40 | return new string [] { "name", "email", "password" }; 41 | } 42 | } 43 | 44 | 45 | } 46 | } 47 | 48 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBEnvironmentVariable.generated.cs: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * This file is autogenerated by the SqlToCSharp.cs tool. 4 | * All modifications will be lost when the tool is ran. 5 | */ 6 | 7 | 8 | using System; 9 | using System.Collections.Generic; 10 | using System.Data; 11 | using System.Data.Common; 12 | using System.IO; 13 | using System.Reflection; 14 | 15 | #pragma warning disable 649 16 | 17 | namespace MonkeyWrench.DataClasses 18 | { 19 | public partial class DBEnvironmentVariable : DBRecord 20 | { 21 | private int? _host_id; 22 | private int? _lane_id; 23 | private string _name; 24 | private string _value; 25 | 26 | public int? @host_id { get { return _host_id; } set { _host_id = value; } } 27 | public int? @lane_id { get { return _lane_id; } set { _lane_id = value; } } 28 | public string @name { get { return _name; } set { _name = value; } } 29 | public string @value { get { return _value; } set { _value = value; } } 30 | 31 | 32 | public override string Table 33 | { 34 | get { return "EnvironmentVariable"; } 35 | } 36 | 37 | 38 | public override string [] Fields 39 | { 40 | get 41 | { 42 | return new string [] { "host_id", "lane_id", "name", "value" }; 43 | } 44 | } 45 | 46 | 47 | } 48 | } 49 | 50 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBFile.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DBFile.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Text; 16 | using System.Data; 17 | 18 | namespace MonkeyWrench.DataClasses 19 | { 20 | public partial class DBFile 21 | { 22 | public const string TableName = "File"; 23 | 24 | public DBFile () 25 | { 26 | } 27 | 28 | public DBFile (IDataReader reader) 29 | : base (reader) 30 | { 31 | } 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBFileDeletionDirective.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DBFileDeletionDirective.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Text; 16 | using System.Data; 17 | using System.Data.Common; 18 | 19 | #pragma warning disable 649 20 | 21 | namespace MonkeyWrench.DataClasses 22 | { 23 | public partial class DBFileDeletionDirective : DBRecord 24 | { 25 | public const string TableName = "FileDeletionDirective"; 26 | 27 | public DBFileDeletionDirective () 28 | { 29 | } 30 | 31 | public DBFileDeletionDirective (IDataReader reader) 32 | : base (reader) 33 | { 34 | } 35 | } 36 | } 37 | 38 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBFileDeletionDirective.generated.cs: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * This file is autogenerated by the SqlToCSharp.cs tool. 4 | * All modifications will be lost when the tool is ran. 5 | */ 6 | 7 | 8 | using System; 9 | using System.Collections.Generic; 10 | using System.Data; 11 | using System.Data.Common; 12 | using System.IO; 13 | using System.Reflection; 14 | 15 | #pragma warning disable 649 16 | 17 | namespace MonkeyWrench.DataClasses 18 | { 19 | public partial class DBFileDeletionDirective : DBRecord 20 | { 21 | private string _name; 22 | private string _filename; 23 | private int _match_mode; 24 | private int _condition; 25 | private int _x; 26 | 27 | public string @name { get { return _name; } set { _name = value; } } 28 | public string @filename { get { return _filename; } set { _filename = value; } } 29 | public int @match_mode { get { return _match_mode; } set { _match_mode = value; } } 30 | public int @condition { get { return _condition; } set { _condition = value; } } 31 | public int @x { get { return _x; } set { _x = value; } } 32 | 33 | 34 | public override string Table 35 | { 36 | get { return "FileDeletionDirective"; } 37 | } 38 | 39 | 40 | public override string [] Fields 41 | { 42 | get 43 | { 44 | return new string [] { "name", "filename", "match_mode", "condition", "x" }; 45 | } 46 | } 47 | 48 | 49 | } 50 | } 51 | 52 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBFileLink.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DBFileLink.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | 14 | /* 15 | * This file has been generated. 16 | * If you modify it you'll loose your changes. 17 | */ 18 | 19 | 20 | using System; 21 | using System.Collections.Generic; 22 | using System.Text; 23 | using System.Data; 24 | using System.Data.Common; 25 | 26 | #pragma warning disable 649 27 | 28 | namespace MonkeyWrench.DataClasses 29 | { 30 | public partial class DBFileLink : DBRecord 31 | { 32 | public const string TableName = "FileLink"; 33 | 34 | public DBFileLink () 35 | { 36 | } 37 | 38 | public DBFileLink (IDataReader reader) 39 | : base (reader) 40 | { 41 | } 42 | } 43 | } 44 | 45 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBFileLink.generated.cs: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * This file is autogenerated by the SqlToCSharp.cs tool. 4 | * All modifications will be lost when the tool is ran. 5 | */ 6 | 7 | 8 | using System; 9 | using System.Collections.Generic; 10 | using System.Data; 11 | using System.Data.Common; 12 | using System.IO; 13 | using System.Reflection; 14 | 15 | #pragma warning disable 649 16 | 17 | namespace MonkeyWrench.DataClasses 18 | { 19 | public partial class DBFileLink : DBRecord 20 | { 21 | private string _link; 22 | private int _work_id; 23 | 24 | public string @link { get { return _link; } set { _link = value; } } 25 | public int @work_id { get { return _work_id; } set { _work_id = value; } } 26 | 27 | 28 | public override string Table 29 | { 30 | get { return "FileLink"; } 31 | } 32 | 33 | 34 | public override string [] Fields 35 | { 36 | get 37 | { 38 | return new string [] { "link", "work_id" }; 39 | } 40 | } 41 | 42 | 43 | } 44 | } 45 | 46 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBGitHubIdentity.cs: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * This file has been generated. 4 | * If you modify it you'll loose your changes. 5 | */ 6 | 7 | 8 | using System; 9 | using System.Collections.Generic; 10 | using System.Text; 11 | using System.Data; 12 | using System.Data.Common; 13 | 14 | #pragma warning disable 649 15 | 16 | namespace MonkeyWrench.DataClasses 17 | { 18 | public partial class DBGitHubIdentity : DBRecord 19 | { 20 | public const string TableName = "GitHubIdentity"; 21 | 22 | public DBGitHubIdentity () 23 | { 24 | } 25 | 26 | public DBGitHubIdentity (IDataReader reader) 27 | : base (reader) 28 | { 29 | } 30 | } 31 | } 32 | 33 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBGitHubIdentity.generated.cs: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * This file is autogenerated by the SqlToCSharp.cs tool. 4 | * All modifications will be lost when the tool is ran. 5 | */ 6 | 7 | 8 | using System; 9 | using System.Collections.Generic; 10 | using System.Data; 11 | using System.Data.Common; 12 | using System.IO; 13 | using System.Reflection; 14 | 15 | #pragma warning disable 649 16 | 17 | namespace MonkeyWrench.DataClasses 18 | { 19 | public partial class DBGitHubIdentity : DBRecord 20 | { 21 | private string _name; 22 | private string _username; 23 | private string _token; 24 | 25 | public string @name { get { return _name; } set { _name = value; } } 26 | public string @username { get { return _username; } set { _username = value; } } 27 | public string @token { get { return _token; } set { _token = value; } } 28 | 29 | 30 | public override string Table 31 | { 32 | get { return "GitHubIdentity"; } 33 | } 34 | 35 | 36 | public override string [] Fields 37 | { 38 | get 39 | { 40 | return new string [] { "name", "username", "token" }; 41 | } 42 | } 43 | 44 | 45 | } 46 | } 47 | 48 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBHost.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DBHost.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Text; 16 | using System.Data; 17 | using System.Data.Common; 18 | 19 | namespace MonkeyWrench.DataClasses 20 | { 21 | public partial class DBHost : DBRecord 22 | { 23 | public const string TableName = "Host"; 24 | 25 | public DBHost () 26 | { 27 | } 28 | 29 | public DBHost (IDataReader reader) : base (reader) 30 | { 31 | } 32 | 33 | public DBQueueManagement QueueManagement 34 | { 35 | get { return (DBQueueManagement) queuemanagement; } 36 | } 37 | 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBHost.generated.cs: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * This file is autogenerated by the SqlToCSharp.cs tool. 4 | * All modifications will be lost when the tool is ran. 5 | */ 6 | 7 | 8 | using System; 9 | using System.Collections.Generic; 10 | using System.Data; 11 | using System.Data.Common; 12 | using System.IO; 13 | using System.Reflection; 14 | 15 | #pragma warning disable 649 16 | 17 | namespace MonkeyWrench.DataClasses 18 | { 19 | public partial class DBHost : DBRecord 20 | { 21 | private string _host; 22 | private string _description; 23 | private string _architecture; 24 | private int _queuemanagement; 25 | private bool _enabled; 26 | private int? _release_id; 27 | 28 | public string @host { get { return _host; } set { _host = value; } } 29 | public string @description { get { return _description; } set { _description = value; } } 30 | public string @architecture { get { return _architecture; } set { _architecture = value; } } 31 | public int @queuemanagement { get { return _queuemanagement; } set { _queuemanagement = value; } } 32 | public bool @enabled { get { return _enabled; } set { _enabled = value; } } 33 | public int? @release_id { get { return _release_id; } set { _release_id = value; } } 34 | 35 | 36 | public override string Table 37 | { 38 | get { return "Host"; } 39 | } 40 | 41 | 42 | public override string [] Fields 43 | { 44 | get 45 | { 46 | return new string [] { "host", "description", "architecture", "queuemanagement", "enabled", "release_id" }; 47 | } 48 | } 49 | 50 | 51 | } 52 | } 53 | 54 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBHostLane.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DBHostLane.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Text; 16 | using System.Data; 17 | 18 | namespace MonkeyWrench.DataClasses 19 | { 20 | public partial class DBHostLane 21 | { 22 | public const string TableName = "HostLane"; 23 | 24 | public DBHostLane () 25 | { 26 | } 27 | 28 | public DBHostLane(IDataReader reader) 29 | : base(reader) 30 | { 31 | } 32 | 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBHostLane.generated.cs: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * This file is autogenerated by the SqlToCSharp.cs tool. 4 | * All modifications will be lost when the tool is ran. 5 | */ 6 | 7 | 8 | using System; 9 | using System.Collections.Generic; 10 | using System.Data; 11 | using System.Data.Common; 12 | using System.IO; 13 | using System.Reflection; 14 | 15 | #pragma warning disable 649 16 | 17 | namespace MonkeyWrench.DataClasses 18 | { 19 | public partial class DBHostLane : DBRecord 20 | { 21 | private int _host_id; 22 | private int _lane_id; 23 | private bool _enabled; 24 | private bool _hidden; 25 | 26 | public int @host_id { get { return _host_id; } set { _host_id = value; } } 27 | public int @lane_id { get { return _lane_id; } set { _lane_id = value; } } 28 | public bool @enabled { get { return _enabled; } set { _enabled = value; } } 29 | public bool @hidden { get { return _hidden; } set { _hidden = value; } } 30 | 31 | 32 | public override string Table 33 | { 34 | get { return "HostLane"; } 35 | } 36 | 37 | 38 | public override string [] Fields 39 | { 40 | get 41 | { 42 | return new string [] { "host_id", "lane_id", "enabled", "hidden" }; 43 | } 44 | } 45 | 46 | 47 | } 48 | } 49 | 50 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBHostLaneView.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DBHostLaneView.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Linq; 16 | using System.Text; 17 | 18 | namespace MonkeyWrench.DataClasses 19 | { 20 | public partial class DBHostLaneView : DBView 21 | { 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBIrcIdentity.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DBIrcIdentity.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Text; 16 | using System.Data; 17 | using System.Data.Common; 18 | 19 | #pragma warning disable 649 20 | 21 | namespace MonkeyWrench.DataClasses 22 | { 23 | public partial class DBIrcIdentity : DBRecord 24 | { 25 | public const string TableName = "IrcIdentity"; 26 | 27 | public DBIrcIdentity () 28 | { 29 | } 30 | 31 | public DBIrcIdentity (IDataReader reader) 32 | : base (reader) 33 | { 34 | } 35 | } 36 | } 37 | 38 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBLane.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DBLane.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Data; 16 | using System.Data.Common; 17 | using System.Text; 18 | 19 | namespace MonkeyWrench.DataClasses 20 | { 21 | public partial class DBLane : DBRecord 22 | { 23 | public static string TableName = "Lane"; 24 | public DBLane () 25 | { 26 | } 27 | 28 | public DBLane (IDataReader reader) 29 | : base (reader) 30 | { 31 | } 32 | 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBLaneDeletionDirective.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DBLaneDeletionDirective.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Text; 16 | using System.Data; 17 | using System.Data.Common; 18 | 19 | #pragma warning disable 649 20 | 21 | namespace MonkeyWrench.DataClasses 22 | { 23 | public partial class DBLaneDeletionDirective : DBRecord 24 | { 25 | public const string TableName = "LaneDeletionDirective"; 26 | 27 | public DBLaneDeletionDirective () 28 | { 29 | } 30 | 31 | public DBLaneDeletionDirective (IDataReader reader) 32 | : base (reader) 33 | { 34 | } 35 | } 36 | } 37 | 38 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBLaneDeletionDirective.generated.cs: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * This file is autogenerated by the SqlToCSharp.cs tool. 4 | * All modifications will be lost when the tool is ran. 5 | */ 6 | 7 | 8 | using System; 9 | using System.Collections.Generic; 10 | using System.Data; 11 | using System.Data.Common; 12 | using System.IO; 13 | using System.Reflection; 14 | 15 | #pragma warning disable 649 16 | 17 | namespace MonkeyWrench.DataClasses 18 | { 19 | public partial class DBLaneDeletionDirective : DBRecord 20 | { 21 | private int _lane_id; 22 | private int _file_deletion_directive_id; 23 | private bool _enabled; 24 | 25 | public int @lane_id { get { return _lane_id; } set { _lane_id = value; } } 26 | public int @file_deletion_directive_id { get { return _file_deletion_directive_id; } set { _file_deletion_directive_id = value; } } 27 | public bool @enabled { get { return _enabled; } set { _enabled = value; } } 28 | 29 | 30 | public override string Table 31 | { 32 | get { return "LaneDeletionDirective"; } 33 | } 34 | 35 | 36 | public override string [] Fields 37 | { 38 | get 39 | { 40 | return new string [] { "lane_id", "file_deletion_directive_id", "enabled" }; 41 | } 42 | } 43 | 44 | 45 | } 46 | } 47 | 48 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBLaneDeletionDirectiveView.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DBLaneDeletionDirectiveView.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Data; 16 | using System.Data.Common; 17 | using System.IO; 18 | using System.Reflection; 19 | 20 | namespace MonkeyWrench.DataClasses 21 | { 22 | public partial class DBLaneDeletionDirectiveView : DBView 23 | { 24 | public DBMatchMode MatchMode 25 | { 26 | get { return (DBMatchMode) match_mode; } 27 | } 28 | 29 | public DBDeleteCondition Condition 30 | { 31 | get { return (DBDeleteCondition) condition; } 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBLaneDependency.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DBLaneDependency.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Text; 16 | using System.Data; 17 | using System.Data.Common; 18 | 19 | namespace MonkeyWrench.DataClasses 20 | { 21 | public partial class DBLaneDependency : DBRecord 22 | { 23 | public const string TableName = "LaneDependency"; 24 | 25 | public DBLaneDependency () 26 | { 27 | } 28 | 29 | 30 | public DBLaneDependency (IDataReader reader) 31 | : base (reader) 32 | { 33 | } 34 | 35 | public DBLaneDependencyCondition Condition 36 | { 37 | get { return (DBLaneDependencyCondition) condition; } 38 | set { condition = (int) value; } 39 | } 40 | } 41 | } 42 | 43 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBLaneDependencyCondition.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DBLaneDependencyCondition.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | namespace MonkeyWrench.DataClasses 14 | { 15 | public enum DBLaneDependencyCondition 16 | { 17 | Invalid = 0, 18 | DependentLaneSuccess = 1, 19 | DependentLaneSuccessWithFile = 2, 20 | DependentLaneIssuesOrSuccess = 3, 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBLaneNotification.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DBLaneNotification.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Text; 16 | using System.Data; 17 | using System.Data.Common; 18 | 19 | #pragma warning disable 649 20 | 21 | namespace MonkeyWrench.DataClasses 22 | { 23 | public partial class DBLaneNotification : DBRecord 24 | { 25 | public const string TableName = "LaneNotification"; 26 | 27 | public DBLaneNotification () 28 | { 29 | } 30 | 31 | public DBLaneNotification (IDataReader reader) 32 | : base (reader) 33 | { 34 | } 35 | } 36 | } 37 | 38 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBLaneNotification.generated.cs: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * This file is autogenerated by the SqlToCSharp.cs tool. 4 | * All modifications will be lost when the tool is ran. 5 | */ 6 | 7 | 8 | using System; 9 | using System.Collections.Generic; 10 | using System.Data; 11 | using System.Data.Common; 12 | using System.IO; 13 | using System.Reflection; 14 | 15 | #pragma warning disable 649 16 | 17 | namespace MonkeyWrench.DataClasses 18 | { 19 | public partial class DBLaneNotification : DBRecord 20 | { 21 | private int _lane_id; 22 | private int _notification_id; 23 | 24 | public int @lane_id { get { return _lane_id; } set { _lane_id = value; } } 25 | public int @notification_id { get { return _notification_id; } set { _notification_id = value; } } 26 | 27 | 28 | public override string Table 29 | { 30 | get { return "LaneNotification"; } 31 | } 32 | 33 | 34 | public override string [] Fields 35 | { 36 | get 37 | { 38 | return new string [] { "lane_id", "notification_id" }; 39 | } 40 | } 41 | 42 | 43 | } 44 | } 45 | 46 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBLaneTag.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DBLaneTag.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (rolf@xamarin.com) 6 | * 7 | * Copyright 2014 Xamarin Inc. (http://www.xamarin.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | 14 | /* 15 | * This file has been generated. 16 | * If you modify it you'll loose your changes. 17 | */ 18 | 19 | 20 | using System; 21 | using System.Collections.Generic; 22 | using System.Text; 23 | using System.Data; 24 | using System.Data.Common; 25 | 26 | #pragma warning disable 649 27 | 28 | namespace MonkeyWrench.DataClasses 29 | { 30 | public partial class DBLaneTag : DBRecord 31 | { 32 | public const string TableName = "LaneTag"; 33 | 34 | public DBLaneTag () 35 | { 36 | } 37 | 38 | public DBLaneTag (IDataReader reader) 39 | : base (reader) 40 | { 41 | } 42 | } 43 | } 44 | 45 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBLaneTag.generated.cs: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * This file is autogenerated by the SqlToCSharp.cs tool. 4 | * All modifications will be lost when the tool is ran. 5 | */ 6 | 7 | 8 | using System; 9 | using System.Collections.Generic; 10 | using System.Data; 11 | using System.Data.Common; 12 | using System.IO; 13 | using System.Reflection; 14 | 15 | #pragma warning disable 649 16 | 17 | namespace MonkeyWrench.DataClasses 18 | { 19 | public partial class DBLaneTag : DBRecord 20 | { 21 | private int _lane_id; 22 | private string _tag; 23 | 24 | public int @lane_id { get { return _lane_id; } set { _lane_id = value; } } 25 | public string @tag { get { return _tag; } set { _tag = value; } } 26 | 27 | 28 | public override string Table 29 | { 30 | get { return "LaneTag"; } 31 | } 32 | 33 | 34 | public override string [] Fields 35 | { 36 | get 37 | { 38 | return new string [] { "lane_id", "tag" }; 39 | } 40 | } 41 | 42 | 43 | } 44 | } 45 | 46 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBLanefile.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DBLanefile.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Text; 16 | using System.Data; 17 | 18 | namespace MonkeyWrench.DataClasses 19 | { 20 | public partial class DBLanefile 21 | { 22 | public const string TableName = "Lanefile"; 23 | 24 | public DBLanefile () 25 | { 26 | } 27 | 28 | public DBLanefile (IDataReader reader) : base (reader) 29 | { 30 | } 31 | } 32 | } 33 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBLanefiles.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DBLanefiles.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Text; 16 | using System.Data; 17 | using System.Data.Common; 18 | 19 | #pragma warning disable 649 20 | 21 | namespace MonkeyWrench.DataClasses 22 | { 23 | public partial class DBLanefiles : DBRecord 24 | { 25 | public const string TableName = "Lanefiles"; 26 | 27 | public DBLanefiles () 28 | { 29 | } 30 | 31 | public DBLanefiles (IDataReader reader) 32 | : base (reader) 33 | { 34 | } 35 | } 36 | } 37 | 38 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBLanefiles.generated.cs: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * This file is autogenerated by the SqlToCSharp.cs tool. 4 | * All modifications will be lost when the tool is ran. 5 | */ 6 | 7 | 8 | using System; 9 | using System.Collections.Generic; 10 | using System.Data; 11 | using System.Data.Common; 12 | using System.IO; 13 | using System.Reflection; 14 | 15 | #pragma warning disable 649 16 | 17 | namespace MonkeyWrench.DataClasses 18 | { 19 | public partial class DBLanefiles : DBRecord 20 | { 21 | private int _lanefile_id; 22 | private int _lane_id; 23 | 24 | public int @lanefile_id { get { return _lanefile_id; } set { _lanefile_id = value; } } 25 | public int @lane_id { get { return _lane_id; } set { _lane_id = value; } } 26 | 27 | 28 | public override string Table 29 | { 30 | get { return "Lanefiles"; } 31 | } 32 | 33 | 34 | public override string [] Fields 35 | { 36 | get 37 | { 38 | return new string [] { "lanefile_id", "lane_id" }; 39 | } 40 | } 41 | 42 | 43 | } 44 | } 45 | 46 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBLogin.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DBLogin.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Text; 16 | using System.Data; 17 | using System.Data.Common; 18 | 19 | namespace MonkeyWrench.DataClasses 20 | { 21 | public partial class DBLogin : DBRecord 22 | { 23 | public const string TableName = "Login"; 24 | 25 | public DBLogin () 26 | { 27 | } 28 | 29 | public DBLogin (IDataReader reader) 30 | : base (reader) 31 | { 32 | } 33 | } 34 | } 35 | 36 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBLogin.generated.cs: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * This file is autogenerated by the SqlToCSharp.cs tool. 4 | * All modifications will be lost when the tool is ran. 5 | */ 6 | 7 | 8 | using System; 9 | using System.Collections.Generic; 10 | using System.Data; 11 | using System.Data.Common; 12 | using System.IO; 13 | using System.Reflection; 14 | 15 | #pragma warning disable 649 16 | 17 | namespace MonkeyWrench.DataClasses 18 | { 19 | public partial class DBLogin : DBRecord 20 | { 21 | private string _cookie; 22 | private int _person_id; 23 | private DateTime _expires; 24 | private string _ip4; 25 | 26 | public string @cookie { get { return _cookie; } set { _cookie = value; } } 27 | public int @person_id { get { return _person_id; } set { _person_id = value; } } 28 | public DateTime @expires { get { return _expires; } set { _expires = value; } } 29 | public string @ip4 { get { return _ip4; } set { _ip4 = value; } } 30 | 31 | 32 | public override string Table 33 | { 34 | get { return "Login"; } 35 | } 36 | 37 | 38 | public override string [] Fields 39 | { 40 | get 41 | { 42 | return new string [] { "cookie", "person_id", "expires", "ip4" }; 43 | } 44 | } 45 | 46 | 47 | } 48 | } 49 | 50 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBLoginView.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DBLoginView.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Text; 16 | using System.Data; 17 | using System.Data.Common; 18 | 19 | namespace MonkeyWrench.DataClasses 20 | { 21 | public partial class DBLoginView 22 | { 23 | 24 | } 25 | } 26 | 27 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBMasterHost.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DBMasterHost.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Text; 16 | using System.Data; 17 | using System.Data.Common; 18 | 19 | #pragma warning disable 649 20 | 21 | namespace MonkeyWrench.DataClasses 22 | { 23 | public partial class DBMasterHost : DBRecord 24 | { 25 | public const string TableName = "MasterHost"; 26 | 27 | public DBMasterHost () 28 | { 29 | } 30 | 31 | public DBMasterHost (IDataReader reader) 32 | : base (reader) 33 | { 34 | } 35 | } 36 | } 37 | 38 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBMasterHost.generated.cs: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * This file is autogenerated by the SqlToCSharp.cs tool. 4 | * All modifications will be lost when the tool is ran. 5 | */ 6 | 7 | 8 | using System; 9 | using System.Collections.Generic; 10 | using System.Data; 11 | using System.Data.Common; 12 | using System.IO; 13 | using System.Reflection; 14 | 15 | #pragma warning disable 649 16 | 17 | namespace MonkeyWrench.DataClasses 18 | { 19 | public partial class DBMasterHost : DBRecord 20 | { 21 | private int _host_id; 22 | private int _master_host_id; 23 | 24 | public int @host_id { get { return _host_id; } set { _host_id = value; } } 25 | public int @master_host_id { get { return _master_host_id; } set { _master_host_id = value; } } 26 | 27 | 28 | public override string Table 29 | { 30 | get { return "MasterHost"; } 31 | } 32 | 33 | 34 | public override string [] Fields 35 | { 36 | get 37 | { 38 | return new string [] { "host_id", "master_host_id" }; 39 | } 40 | } 41 | 42 | 43 | } 44 | } 45 | 46 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBMatchMode.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DBMatchMode.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | namespace MonkeyWrench.DataClasses 14 | { 15 | public enum DBMatchMode 16 | { 17 | ShellGlobs = 0, // space separated list of shell globs 18 | RegExp = 1, // regexp 19 | Exact = 2 // exact match 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBNotification.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DBNotification.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Text; 16 | using System.Data; 17 | using System.Data.Common; 18 | 19 | #pragma warning disable 649 20 | 21 | namespace MonkeyWrench.DataClasses 22 | { 23 | public partial class DBNotification : DBRecord 24 | { 25 | public const string TableName = "Notification"; 26 | 27 | public DBNotification () 28 | { 29 | } 30 | 31 | public DBNotification (IDataReader reader) 32 | : base (reader) 33 | { 34 | } 35 | 36 | public DBNotificationMode Mode 37 | { 38 | get { return (DBNotificationMode) mode; } 39 | set { mode = (int) value; } 40 | } 41 | 42 | public DBNotificationType Type 43 | { 44 | get { return (DBNotificationType) type; } 45 | set { type = (int) value; } 46 | } 47 | } 48 | } 49 | 50 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBNotificationMode.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DBNotificationMode.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2010 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | namespace MonkeyWrench.DataClasses 14 | { 15 | public enum DBNotificationMode 16 | { 17 | Default = 0, 18 | MoonlightDrt = 1, 19 | NUnit = 2 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBNotificationType.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DBNotificationType.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2010 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | namespace MonkeyWrench.DataClasses 14 | { 15 | public enum DBNotificationType 16 | { 17 | FatalFailuresOnly = 0, 18 | NonFatalFailuresOnly = 1, 19 | AllFailures = 2 20 | } 21 | 22 | } 23 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBPerson.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DBPerson.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Text; 16 | using System.Data; 17 | using System.Data.Common; 18 | 19 | namespace MonkeyWrench.DataClasses 20 | { 21 | public partial class DBPerson : DBRecord 22 | { 23 | public const string TableName = "Person"; 24 | public string [] Emails; 25 | 26 | public DBPerson () 27 | { 28 | } 29 | 30 | public DBPerson (IDataReader reader) 31 | : base (reader) 32 | { 33 | } 34 | 35 | public string [] Roles 36 | { 37 | get { return roles == null ? null : roles.Split (new char [] { ',' }, StringSplitOptions.RemoveEmptyEntries); } 38 | } 39 | } 40 | } 41 | 42 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBPerson.generated.cs: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * This file is autogenerated by the SqlToCSharp.cs tool. 4 | * All modifications will be lost when the tool is ran. 5 | */ 6 | 7 | 8 | using System; 9 | using System.Collections.Generic; 10 | using System.Data; 11 | using System.Data.Common; 12 | using System.IO; 13 | using System.Reflection; 14 | 15 | #pragma warning disable 649 16 | 17 | namespace MonkeyWrench.DataClasses 18 | { 19 | public partial class DBPerson : DBRecord 20 | { 21 | private string _login; 22 | private string _password; 23 | private string _fullname; 24 | private string _roles; 25 | private string _irc_nicknames; 26 | 27 | public string @login { get { return _login; } set { _login = value; } } 28 | public string @password { get { return _password; } set { _password = value; } } 29 | public string @fullname { get { return _fullname; } set { _fullname = value; } } 30 | public string @roles { get { return _roles; } set { _roles = value; } } 31 | public string @irc_nicknames { get { return _irc_nicknames; } set { _irc_nicknames = value; } } 32 | 33 | 34 | public override string Table 35 | { 36 | get { return "Person"; } 37 | } 38 | 39 | 40 | public override string [] Fields 41 | { 42 | get 43 | { 44 | return new string [] { "login", "password", "fullname", "roles", "irc_nicknames" }; 45 | } 46 | } 47 | 48 | 49 | } 50 | } 51 | 52 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBQueueManagement.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DBQueueManagement.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Text; 16 | 17 | namespace MonkeyWrench.DataClasses 18 | { 19 | public enum DBQueueManagement 20 | { 21 | FinishBeforeNew = 0, 22 | ExecuteLatestAsap = 1, // currently same as FinishBeforeNew (i.e. ignored) 23 | OneRevisionWorkAtATime = 2, // 24 | ChooseHighestPriorityLeastRecent = 3 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBRelease.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DBRelease.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Text; 16 | using System.Data; 17 | using System.Data.Common; 18 | 19 | #pragma warning disable 649 20 | 21 | namespace MonkeyWrench.DataClasses 22 | { 23 | public partial class DBRelease : DBRecord 24 | { 25 | public const string TableName = "Release"; 26 | 27 | public DBRelease () 28 | { 29 | } 30 | 31 | public DBRelease (IDataReader reader) 32 | : base (reader) 33 | { 34 | } 35 | } 36 | } 37 | 38 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBRelease.generated.cs: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * This file is autogenerated by the SqlToCSharp.cs tool. 4 | * All modifications will be lost when the tool is ran. 5 | */ 6 | 7 | 8 | using System; 9 | using System.Collections.Generic; 10 | using System.Data; 11 | using System.Data.Common; 12 | using System.IO; 13 | using System.Reflection; 14 | 15 | #pragma warning disable 649 16 | 17 | namespace MonkeyWrench.DataClasses 18 | { 19 | public partial class DBRelease : DBRecord 20 | { 21 | private string _version; 22 | private string _revision; 23 | private string _description; 24 | private string _filename; 25 | 26 | public string @version { get { return _version; } set { _version = value; } } 27 | public string @revision { get { return _revision; } set { _revision = value; } } 28 | public string @description { get { return _description; } set { _description = value; } } 29 | public string @filename { get { return _filename; } set { _filename = value; } } 30 | 31 | 32 | public override string Table 33 | { 34 | get { return "Release"; } 35 | } 36 | 37 | 38 | public override string [] Fields 39 | { 40 | get 41 | { 42 | return new string [] { "version", "revision", "description", "filename" }; 43 | } 44 | } 45 | 46 | 47 | } 48 | } 49 | 50 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBRevision.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DBRevision.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Data; 16 | using System.Data.Common; 17 | using System.IO; 18 | 19 | namespace MonkeyWrench.DataClasses 20 | { 21 | public partial class DBRevision : DBRecord 22 | { 23 | public const string TableName = "Revision"; 24 | 25 | public DBRevision () 26 | { 27 | } 28 | 29 | public DBRevision (IDataReader reader) 30 | : base (reader) 31 | { 32 | } 33 | 34 | } 35 | } -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBRevisionWork.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DBRevisionWork.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Text; 16 | using System.Data; 17 | using System.Data.Common; 18 | 19 | namespace MonkeyWrench.DataClasses 20 | { 21 | public partial class DBRevisionWork : DBRecord 22 | { 23 | public const string TableName = "RevisionWork"; 24 | 25 | public DBRevisionWork () 26 | { 27 | } 28 | 29 | public DBRevisionWork (IDataReader reader) 30 | : base (reader) 31 | { 32 | } 33 | 34 | public DBState State 35 | { 36 | get { return (DBState) state; } 37 | set { state = (int) value; } 38 | } 39 | 40 | } 41 | } 42 | 43 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBRevisionWorkView.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DBRevisionWorkView.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Data; 16 | using System.Data.Common; 17 | using System.IO; 18 | using System.Reflection; 19 | 20 | namespace MonkeyWrench.DataClasses 21 | { 22 | public partial class DBRevisionWorkView : DBView 23 | { 24 | public DBState State 25 | { 26 | get { return (DBState) state; } 27 | } 28 | 29 | public DBState RevisionWorkState 30 | { 31 | get { return (DBState) revisionwork_state; } 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBRevisionWorkView2.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DBRevisionWorkView2.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Linq; 16 | using System.Text; 17 | 18 | namespace MonkeyWrench.DataClasses 19 | { 20 | partial class DBRevisionWorkView2 21 | { 22 | public DBState State 23 | { 24 | get { return (DBState) _state; } 25 | set { _state = (int) value; } 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBState.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DBState.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | namespace MonkeyWrench.DataClasses 14 | { 15 | public enum DBState 16 | { 17 | NotDone = 0, 18 | Executing = 1, 19 | Failed = 2, 20 | Success = 3, 21 | Aborted = 4, 22 | Timeout = 5, 23 | Paused = 6, 24 | Skipped = 7, 25 | Issues = 8, 26 | DependencyNotFulfilled = 9, 27 | NoWorkYet = 10, 28 | Ignore = 11, 29 | } 30 | 31 | } 32 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBUserEmail.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DBUserEmail.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Text; 16 | using System.Data; 17 | using System.Data.Common; 18 | 19 | #pragma warning disable 649 20 | 21 | namespace MonkeyWrench.DataClasses 22 | { 23 | public partial class DBUserEmail : DBRecord 24 | { 25 | public const string TableName = "UserEmail"; 26 | 27 | public DBUserEmail () 28 | { 29 | } 30 | 31 | public DBUserEmail (IDataReader reader) 32 | : base (reader) 33 | { 34 | } 35 | } 36 | } 37 | 38 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBUserEmail.generated.cs: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * This file is autogenerated by the SqlToCSharp.cs tool. 4 | * All modifications will be lost when the tool is ran. 5 | */ 6 | 7 | 8 | using System; 9 | using System.Collections.Generic; 10 | using System.Data; 11 | using System.Data.Common; 12 | using System.IO; 13 | using System.Reflection; 14 | 15 | #pragma warning disable 649 16 | 17 | namespace MonkeyWrench.DataClasses 18 | { 19 | public partial class DBUserEmail : DBRecord 20 | { 21 | private int _person_id; 22 | private string _email; 23 | 24 | public int @person_id { get { return _person_id; } set { _person_id = value; } } 25 | public string @email { get { return _email; } set { _email = value; } } 26 | 27 | 28 | public override string Table 29 | { 30 | get { return "UserEmail"; } 31 | } 32 | 33 | 34 | public override string [] Fields 35 | { 36 | get 37 | { 38 | return new string [] { "person_id", "email" }; 39 | } 40 | } 41 | 42 | 43 | } 44 | } 45 | 46 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBView.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DBView.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Text; 16 | using System.Data; 17 | 18 | namespace MonkeyWrench.DataClasses 19 | { 20 | public abstract class DBView : DBRecord 21 | { 22 | public DBView () 23 | : base () 24 | { 25 | } 26 | 27 | public DBView (IDataReader reader) 28 | : base (reader) 29 | { 30 | } 31 | 32 | public override void Save (IDB db) 33 | { 34 | throw new Exception ("Can't save a View"); 35 | } 36 | 37 | public override void Delete (IDB db) 38 | { 39 | throw new Exception ("Can't delete a View"); 40 | } 41 | 42 | public override string Table 43 | { 44 | get { throw new Exception ("A view doesn't have a table"); } 45 | } 46 | } 47 | } 48 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBWorkFile.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DBWorkFile.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.IO; 16 | using System.Text; 17 | using System.Data; 18 | using System.Data.Common; 19 | 20 | namespace MonkeyWrench.DataClasses 21 | { 22 | public partial class DBWorkFile : DBRecord 23 | { 24 | public const string TableName = "WorkFile"; 25 | 26 | public DBWorkFile () 27 | { 28 | } 29 | 30 | public DBWorkFile (IDataReader reader) 31 | : base (reader) 32 | { 33 | } 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBWorkFile.generated.cs: -------------------------------------------------------------------------------- 1 | 2 | /* 3 | * This file is autogenerated by the SqlToCSharp.cs tool. 4 | * All modifications will be lost when the tool is ran. 5 | */ 6 | 7 | 8 | using System; 9 | using System.Collections.Generic; 10 | using System.Data; 11 | using System.Data.Common; 12 | using System.IO; 13 | using System.Reflection; 14 | 15 | #pragma warning disable 649 16 | 17 | namespace MonkeyWrench.DataClasses 18 | { 19 | public partial class DBWorkFile : DBRecord 20 | { 21 | private int _work_id; 22 | private int _file_id; 23 | private bool _hidden; 24 | private string _filename; 25 | 26 | public int @work_id { get { return _work_id; } set { _work_id = value; } } 27 | public int @file_id { get { return _file_id; } set { _file_id = value; } } 28 | public bool @hidden { get { return _hidden; } set { _hidden = value; } } 29 | public string @filename { get { return _filename; } set { _filename = value; } } 30 | 31 | 32 | public override string Table 33 | { 34 | get { return "WorkFile"; } 35 | } 36 | 37 | 38 | public override string [] Fields 39 | { 40 | get 41 | { 42 | return new string [] { "work_id", "file_id", "hidden", "filename" }; 43 | } 44 | } 45 | 46 | 47 | } 48 | } 49 | 50 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBWorkFileView.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DBWorkFileView.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Data; 16 | using System.Data.Common; 17 | using System.Text; 18 | 19 | namespace MonkeyWrench.DataClasses 20 | { 21 | public partial class DBWorkFileView : DBView 22 | { 23 | 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Database/DBWorkView2.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DBWorkView2.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Text; 16 | 17 | #pragma warning disable 649 18 | 19 | namespace MonkeyWrench.DataClasses 20 | { 21 | partial class DBWorkView2 22 | { 23 | public DBState State 24 | { 25 | get { return (DBState) state; } 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Logic/BuildBotStatus.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * BuildBotStatus.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2010 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Linq; 16 | using System.Reflection; 17 | using System.Text; 18 | 19 | namespace MonkeyWrench.DataClasses.Logic 20 | { 21 | public class BuildBotStatus 22 | { 23 | public string Host; 24 | public string AssemblyVersion; 25 | public string AssemblyDescription; 26 | 27 | public void FillInAssemblyAttributes () 28 | { 29 | AssemblyDescriptionAttribute ad; 30 | object [] attribs; 31 | 32 | AssemblyDescription = ""; 33 | attribs = typeof (Configuration).Assembly.GetCustomAttributes (typeof (AssemblyDescriptionAttribute), false); 34 | if (attribs != null && attribs.Length > 0) { 35 | ad = (AssemblyDescriptionAttribute) attribs [0]; 36 | AssemblyDescription = ad.Description; 37 | } 38 | AssemblyVersion = typeof (Configuration).Assembly.GetName ().Version.ToString (); 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Logic/BuildInfoEntry.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * BuildInfoEntry.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Linq; 16 | using System.Text; 17 | 18 | namespace MonkeyWrench.DataClasses.Logic 19 | { 20 | public class BuildInfoEntry 21 | { 22 | public DBLane Lane; 23 | public DBHostLane HostLane; 24 | public DBRevision Revision; 25 | public List FilesToDownload; 26 | public List DependentLaneOfFiles; // same # of entries as FilesToDownload, 1-1 correspondence. 27 | public List LaneFiles; 28 | public DBWork Work; 29 | public DBCommand Command; 30 | public List EnvironmentVariables; 31 | public DBHost Host; // The host this work was assigned to 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Logic/ChangeLog: -------------------------------------------------------------------------------- 1 | 2009-09-15 Rolf Bjarne Kvinge 2 | 3 | * FrontPageResponse.cs: Add a SelectedLanes field. 4 | 5 | 2009-09-10 Rolf Bjarne Kvinge 6 | 7 | * FindHostResponse.cs: Added. 8 | 9 | 2009-09-09 Rolf Bjarne Kvinge 10 | 11 | * GetHostForEditResponse.cs: Added Person field to enable editing the 12 | password of a host. 13 | 14 | 2009-07-15 Rolf Bjarne Kvinge 15 | 16 | * BuildInfoEntry.cs: Added a HostLane field. 17 | 18 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Logic/FindHostResponse.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * FindLaneResponse.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Linq; 16 | using System.Text; 17 | 18 | using MonkeyWrench; 19 | 20 | namespace MonkeyWrench.DataClasses.Logic 21 | { 22 | public class FindHostResponse : WebServiceResponse 23 | { 24 | public DBHost Host; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Logic/FindLaneResponse.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * FindLaneResponse.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Linq; 16 | using System.Text; 17 | 18 | using MonkeyWrench; 19 | 20 | namespace MonkeyWrench.DataClasses.Logic 21 | { 22 | public class FindLaneResponse : WebServiceResponse 23 | { 24 | public DBLane lane; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Logic/FindLaneWithDependenciesResponse.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * FindLaneWithDependenciesResponse.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (rolf@xamarin.com) 6 | * 7 | * Copyright 2013 Xamarin Inc. (http://www.xamarin.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Linq; 16 | using System.Text; 17 | 18 | using MonkeyWrench; 19 | 20 | namespace MonkeyWrench.DataClasses.Logic 21 | { 22 | public class FindLaneWithDependenciesResponse : WebServiceResponse 23 | { 24 | public DBLane lane; 25 | public List dependencies; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Logic/FindRevisionResponse.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * FindRevisionResponse.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Linq; 16 | using System.Text; 17 | 18 | namespace MonkeyWrench.DataClasses.Logic 19 | { 20 | public class FindRevisionResponse : WebServiceResponse 21 | { 22 | public DBRevision Revision; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Logic/FrontPageResponse.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * FrontPageResponse.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Linq; 16 | using System.Text; 17 | 18 | using MonkeyWrench; 19 | 20 | namespace MonkeyWrench.DataClasses.Logic 21 | { 22 | public class FrontPageResponse : WebServiceResponse 23 | { 24 | public DBLane Lane; 25 | /// 26 | /// A list of the lanes to show. 27 | /// 28 | public List SelectedLanes; 29 | /// 30 | /// All Lanes 31 | /// 32 | public List Lanes; 33 | /// 34 | /// All Hosts 35 | /// 36 | public List Hosts; 37 | public List HostLanes; 38 | 39 | public List RevisionWorkHostLaneRelation; 40 | public List> RevisionWorkViews; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Logic/GetAdminInfoResponse.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * FrontPageResponse.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Linq; 16 | using System.Text; 17 | 18 | using MonkeyWrench; 19 | 20 | namespace MonkeyWrench.DataClasses.Logic 21 | { 22 | public class GetAdminInfoResponse : WebServiceResponse 23 | { 24 | public bool IsSchedulerExecuting; 25 | public bool IsDeletionDirectivesExecuting; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Logic/GetAuditResponse.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * GetAuditResponse.cs 3 | * 4 | * Authors: 5 | * Matt Sylvia (matthew.sylvia@xamarin.com) 6 | * 7 | * Copyright 2016 Xamarin, Inc. (http://www.xamarin.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Linq; 16 | using System.Text; 17 | 18 | namespace MonkeyWrench.DataClasses.Logic 19 | { 20 | public class GetAuditResponse : WebServiceResponse 21 | { 22 | public int Count; 23 | public List AuditEntries; 24 | } 25 | } 26 | 27 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Logic/GetBuildBotStatusResponse.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * GetBuildBotStatusResponse.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Linq; 16 | using System.Text; 17 | 18 | using MonkeyWrench; 19 | 20 | namespace MonkeyWrench.DataClasses.Logic 21 | { 22 | public class GetBuildBotStatusResponse : WebServiceResponse 23 | { 24 | public List Status; 25 | public List Hosts; 26 | public List Releases; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Logic/GetBuildInfoResponse.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * GetBuildInfoResponse.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Linq; 16 | using System.Text; 17 | 18 | namespace MonkeyWrench.DataClasses.Logic 19 | { 20 | public class GetBuildInfoResponse : WebServiceResponse 21 | { 22 | /// 23 | /// The host executing the request. 24 | /// 25 | public DBHost Host; 26 | 27 | /// 28 | /// A list of work to do. Each item is a list of entries which can be executed simultaneously. 29 | /// 30 | public List> Work; 31 | 32 | /// 33 | /// A list of the master hosts for this host 34 | /// 35 | public List MasterHosts; 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Logic/GetCommandsResponse.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * GetCommandsResponse.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2010 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Linq; 16 | using System.Text; 17 | 18 | namespace MonkeyWrench.DataClasses.Logic 19 | { 20 | public class GetCommandsResponse : WebServiceResponse 21 | { 22 | public List Commands; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Logic/GetFilesForWorkResponse.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * GetFilesForWorkResponse.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2010 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Linq; 16 | using System.Text; 17 | 18 | using MonkeyWrench; 19 | 20 | namespace MonkeyWrench.DataClasses.Logic 21 | { 22 | public class GetFilesForWorkResponse : WebServiceResponse 23 | { 24 | public List Commands; 25 | public List> Files; 26 | public List> WorkFileIds; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Logic/GetHostForEditResponse.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * GetHostsForEditResponse.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Linq; 16 | using System.Text; 17 | 18 | namespace MonkeyWrench.DataClasses.Logic 19 | { 20 | public class GetHostForEditResponse: WebServiceResponse 21 | { 22 | public DBHost Host; 23 | public DBPerson Person; 24 | public List HostLaneViews; 25 | public List Lanes; 26 | public List Variables; 27 | public List MasterHosts; 28 | public List SlaveHosts; 29 | public List Hosts; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Logic/GetHostLanesResponse.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * GetHostLanesResponse.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2010 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Linq; 16 | using System.Text; 17 | 18 | namespace MonkeyWrench.DataClasses.Logic 19 | { 20 | public class GetHostLanesResponse : WebServiceResponse 21 | { 22 | public List HostLanes; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Logic/GetHostStatusResponse.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * GetHostStatusResponse.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (rolf@xamarin.com) 6 | * 7 | * Copyright 2012 Xamarin Inc (http://www.xamarin.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Linq; 16 | using System.Text; 17 | 18 | namespace MonkeyWrench.DataClasses.Logic { 19 | public class GetHostStatusResponse : WebServiceResponse { 20 | public List HostStatus; 21 | public string UploadStatus; 22 | } 23 | } 24 | 25 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Logic/GetHostsResponse.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * GetHostsResponse.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Linq; 16 | using System.Text; 17 | 18 | namespace MonkeyWrench.DataClasses.Logic 19 | { 20 | public class GetHostsResponse : WebServiceResponse 21 | { 22 | public List Hosts; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Logic/GetIdentitiesResponse.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * GetLaneFileForEditResponse.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Linq; 16 | using System.Text; 17 | 18 | namespace MonkeyWrench.DataClasses.Logic 19 | { 20 | public class GetIdentitiesResponse : WebServiceResponse 21 | { 22 | public List IrcIdentities; 23 | public List EmailIdentities; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Logic/GetLaneFileForEditResponse.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * GetLaneFileForEditResponse.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Linq; 16 | using System.Text; 17 | 18 | namespace MonkeyWrench.DataClasses.Logic 19 | { 20 | public class GetLaneFileForEditResponse : WebServiceResponse 21 | { 22 | public DBLanefile Lanefile; 23 | public List Lanes; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Logic/GetLaneForEditResponse.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * GetLaneForEditResponse.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Linq; 16 | using System.Text; 17 | 18 | using MonkeyWrench; 19 | 20 | namespace MonkeyWrench.DataClasses.Logic 21 | { 22 | public class GetLaneForEditResponse : WebServiceResponse 23 | { 24 | public DBLane Lane; 25 | public List Files; 26 | public List LaneFiles; 27 | public List ExistingFiles; 28 | public List Commands; 29 | public List HostLaneViews; 30 | public List Hosts; 31 | public List Lanes; 32 | public List Dependencies; 33 | public List LaneDeletionDirectives; 34 | public List FileDeletionDirectives; 35 | public List Variables; 36 | public List Notifications; 37 | public List LaneNotifications; 38 | public List Tags; 39 | } 40 | } 41 | 42 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Logic/GetLaneResponse.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * GetLaneResponse.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Linq; 16 | using System.Text; 17 | 18 | using MonkeyWrench; 19 | 20 | namespace MonkeyWrench.DataClasses.Logic 21 | { 22 | public class GetLaneResponse : WebServiceResponse 23 | { 24 | public DBLane lane; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Logic/GetLanesResponse.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * GetLanesResponse.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Linq; 16 | using System.Text; 17 | 18 | namespace MonkeyWrench.DataClasses.Logic 19 | { 20 | public class GetLanesResponse : WebServiceResponse 21 | { 22 | public List Lanes; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Logic/GetLeftTreeDataResponse.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * GetLeftTreeDataResponse.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (rolf@xamarin.com) 6 | * 7 | * Copyright 2014, Xamarin Inc (http://www.xamarin.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Linq; 16 | using System.Text; 17 | 18 | namespace MonkeyWrench.DataClasses.Logic 19 | { 20 | public class GetLeftTreeDataResponse : WebServiceResponse 21 | { 22 | public List Lanes; 23 | public List HostStatus; 24 | public string UploadStatus; 25 | public List Tags; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Logic/GetNotificationsResponse.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * GetLanesResponse.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Linq; 16 | using System.Text; 17 | 18 | namespace MonkeyWrench.DataClasses.Logic 19 | { 20 | public class GetNotificationsResponse : WebServiceResponse 21 | { 22 | public List Notifications; 23 | public List IrcIdentities; 24 | public List EmailIdentities; 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Logic/GetReleasesResponse.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * GetCommandsResponse.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2010 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Linq; 16 | using System.Text; 17 | 18 | namespace MonkeyWrench.DataClasses.Logic 19 | { 20 | public class GetReleasesResponse : WebServiceResponse 21 | { 22 | public List Releases; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Logic/GetRevisionWorkForLaneResponse.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * GetRevisionWorkForLaneResponse.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2010 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Linq; 16 | using System.Text; 17 | 18 | namespace MonkeyWrench.DataClasses.Logic 19 | { 20 | public class GetRevisionWorkForLaneResponse : WebServiceResponse 21 | { 22 | public List RevisionWork; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Logic/GetRevisionsResponse.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * GetRevisionsResponse.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2010 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Linq; 16 | using System.Text; 17 | 18 | namespace MonkeyWrench.DataClasses.Logic 19 | { 20 | public class GetRevisionsResponse : WebServiceResponse 21 | { 22 | public List Revisions; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Logic/GetUserResponse.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * GetUserResponse.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Linq; 16 | using System.Text; 17 | 18 | namespace MonkeyWrench.DataClasses.Logic 19 | { 20 | public class GetUserResponse : WebServiceResponse 21 | { 22 | public DBPerson User; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Logic/GetUsersResponse.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * GetUsersResponse.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Linq; 16 | using System.Text; 17 | 18 | namespace MonkeyWrench.DataClasses.Logic 19 | { 20 | public class GetUsersResponse : WebServiceResponse 21 | { 22 | public List Users; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Logic/GetViewLaneDataResponse.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * GetViewLaneDataResponse.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Linq; 16 | using System.Text; 17 | 18 | using MonkeyWrench; 19 | 20 | namespace MonkeyWrench.DataClasses.Logic 21 | { 22 | public class GetViewLaneDataResponse : WebServiceResponse 23 | { 24 | public DateTime Now; 25 | public DBLane Lane; 26 | public DBHost Host; 27 | public DBHost WorkHost; 28 | public DBRevision Revision; 29 | public DBRevisionWork RevisionWork; 30 | public List WorkViews; 31 | public List> WorkFileViews; 32 | public List Links; 33 | } 34 | } 35 | 36 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Logic/GetViewLaneFileHistoryDataResponse.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * GetViewLaneFileHistoryDataResponse.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Linq; 16 | using System.Text; 17 | 18 | namespace MonkeyWrench.DataClasses.Logic 19 | { 20 | public class GetViewLaneFileHistoryDataResponse : WebServiceResponse 21 | { 22 | public List Lanefiles; 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Logic/GetViewTableDataResponse.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * GetViewTableDataResponse.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Linq; 16 | using System.Text; 17 | 18 | namespace MonkeyWrench.DataClasses.Logic 19 | { 20 | public class GetViewTableDataResponse : WebServiceResponse 21 | { 22 | public int Page; 23 | public int PageSize; 24 | public int Count; 25 | public DBLane Lane; 26 | public DBHost Host; 27 | public List RevisionWorkViews; 28 | public bool Enabled; 29 | } 30 | } 31 | 32 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Logic/GetViewWorkTableDataResponse.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * GetViewWorkTableDataResponse.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Linq; 16 | using System.Text; 17 | 18 | namespace MonkeyWrench.DataClasses.Logic 19 | { 20 | public class GetViewWorkTableDataResponse : WebServiceResponse 21 | { 22 | public DBLane Lane; 23 | public DBHost Host; 24 | public DBCommand Command; 25 | public List WorkViews; 26 | public List> WorkFileViews; 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Logic/GetWorkHostHistoryResponse.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * GetWorkHostHistoryResponse.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2010 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Linq; 16 | using System.Text; 17 | 18 | namespace MonkeyWrench.DataClasses.Logic 19 | { 20 | public class GetWorkHostHistoryResponse : WebServiceResponse 21 | { 22 | public DBHost Host; 23 | public List RevisionWorks; 24 | public List Lanes; 25 | public List Revisions; 26 | public List StartTime; 27 | public List Hosts; 28 | public List Durations; 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Logic/LoginResponse.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * LoginResponse.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Linq; 16 | using System.Text; 17 | 18 | namespace MonkeyWrench.DataClasses.Logic 19 | { 20 | public class LoginResponse : WebServiceResponse 21 | { 22 | /// 23 | /// The name of the logged in user 24 | /// 25 | public string User; 26 | 27 | /// 28 | /// The cookie of the logged in user 29 | /// 30 | public string Cookie; 31 | 32 | /// 33 | /// The fullname of the logged in user 34 | /// 35 | public string FullName; 36 | 37 | /// 38 | /// The ID of the logged in user 39 | /// 40 | public int ID; 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Logic/ReportBuildBotStatusResponse.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * ReportBuildBotStatusResponse.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2010 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Linq; 16 | using System.Text; 17 | 18 | namespace MonkeyWrench.DataClasses.Logic 19 | { 20 | public class ReportBuildBotStatusResponse : WebServiceResponse 21 | { 22 | public string ConfiguredVersion; 23 | public string ConfiguredRevision; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Logic/ReportBuildStateResponse.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * ReportBuildStateResponse.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Linq; 16 | using System.Text; 17 | 18 | namespace MonkeyWrench.DataClasses.Logic 19 | { 20 | public class ReportBuildStateResponse : WebServiceResponse 21 | { 22 | public DBWork Work; 23 | public bool RevisionWorkCompleted; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Logic/Roles.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Roles.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Linq; 16 | using System.Text; 17 | 18 | namespace MonkeyWrench.DataClasses.Logic 19 | { 20 | public static class Roles 21 | { 22 | public const string Administrator = "Administrator"; 23 | public const string QualityAssurance = "QualityAssurance"; 24 | public const string MonoTeam = "MonoTeam"; 25 | public const string BuildBot = "BuildBot"; 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Logic/WebServiceException.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * WebServiceException.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2010 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Linq; 16 | using System.Text; 17 | using System.Web; 18 | 19 | namespace MonkeyWrench.DataClasses.Logic 20 | { 21 | public class WebServiceException 22 | { 23 | public string Message; 24 | public string StackTrace; 25 | public string Type; 26 | public string AsString; 27 | public int HttpCode; 28 | 29 | public WebServiceException () 30 | { 31 | } 32 | 33 | public WebServiceException (string Message) 34 | { 35 | this.Message = Message; 36 | } 37 | 38 | public WebServiceException (Exception ex) 39 | { 40 | Message = ex.Message; 41 | StackTrace = ex.StackTrace; 42 | Type = ex.GetType ().FullName; 43 | AsString = ex.ToString (); 44 | 45 | HttpException hex = ex as HttpException; 46 | if (hex != null) { 47 | HttpCode = hex.GetHttpCode (); 48 | } 49 | } 50 | } 51 | } 52 | 53 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Logic/WebServiceLogin.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * WebServiceLogin.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Linq; 16 | using System.Text; 17 | 18 | namespace MonkeyWrench.DataClasses.Logic 19 | { 20 | public class WebServiceLogin 21 | { 22 | /// 23 | /// The user 24 | /// 25 | public string User; 26 | /// 27 | /// The password (not required if Cookie is specified) 28 | /// 29 | public string Password; 30 | /// 31 | /// The cookie of an already logged in user (not required if Password is specified) 32 | /// 33 | public string Cookie; 34 | /// 35 | /// If the calling ip is impersonating somebody else (web ui does this), it must 36 | /// provide the ip for the impersonated login (this applies to when either 37 | /// Password or Cookie is specified) 38 | /// 39 | public string Ip4; 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Logic/WebServiceResponse.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * WebServiceResponse.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Linq; 16 | using System.Text; 17 | 18 | using MonkeyWrench; 19 | 20 | namespace MonkeyWrench.DataClasses.Logic 21 | { 22 | public class WebServiceResponse 23 | { 24 | /// 25 | /// The role the logged in user has. 26 | /// May be null if the user has no roles. 27 | /// 28 | public string [] UserRoles; 29 | 30 | /// 31 | /// The name of the logged in user. 32 | /// Will be null if there is no logged in user. 33 | /// 34 | public string UserName; 35 | 36 | /// 37 | /// Any exceptions thrown 38 | /// 39 | public WebServiceException Exception; 40 | 41 | /// 42 | /// Checks if a user in in a specific role 43 | /// 44 | /// 45 | /// 46 | public bool IsInRole (string role) 47 | { 48 | if (UserRoles == null) 49 | return false; 50 | 51 | return Array.IndexOf (UserRoles, role) >= 0; 52 | } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/Makefile: -------------------------------------------------------------------------------- 1 | 2 | generate: ../scripts/database.sql CustomTypes.sql 3 | mcs SqlToCSharp.cs -out:SqlToCSharp.exe -debug+ 4 | cat ../scripts/database.sql > tmp 5 | cat CustomTypes.sql >> tmp 6 | mono --debug SqlToCSharp.exe tmp 7 | rm -f tmp 8 | rm SqlToCSharp.exe* 9 | dos2unix Database/*.generated.cs 10 | -------------------------------------------------------------------------------- /MonkeyWrench.DataClasses/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /MonkeyWrench.Database.Manager/.gitignore: -------------------------------------------------------------------------------- 1 | bin 2 | obj 3 | 4 | -------------------------------------------------------------------------------- /MonkeyWrench.Database.Manager/ChangeLog: -------------------------------------------------------------------------------- 1 | 2009-07-28 Rolf Bjarne Kvinge 2 | 3 | * Manager.cs: Move ExecuteDeletionDirectives to 4 | the MonkeyWrench.Database assembly. 5 | 6 | 2009-07-28 Rolf Bjarne Kvinge 7 | 8 | * Manager.cs: Remove some dead code. 9 | 10 | 2009-07-23 Rolf Bjarne Kvinge 11 | 12 | * Manager.cs: Fix eol-style. 13 | 14 | 2009-07-23 Rolf Bjarne Kvinge 15 | 16 | * Manager.cs: Update according to DB API changes. 17 | 18 | 2009-07-23 Rolf Bjarne Kvinge 19 | 20 | * Manager.cs: Update according to DB API changes. 21 | 22 | 2009-06-04 Rolf Bjarne Kvinge 23 | 24 | * Makefile: 25 | * Manager.cs: Added. 26 | 27 | -------------------------------------------------------------------------------- /MonkeyWrench.Database.Manager/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /MonkeyWrench.Database.Manager/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /MonkeyWrench.Database/.gitignore: -------------------------------------------------------------------------------- 1 | bin 2 | obj 3 | 4 | -------------------------------------------------------------------------------- /MonkeyWrench.Database/Extensions/DBCommand_Extensions.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DBCommand_Extensions.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Data; 16 | using System.Linq; 17 | using System.Text; 18 | 19 | using MonkeyWrench.DataClasses; 20 | 21 | namespace MonkeyWrench.Database 22 | { 23 | public static class DBCommand_Extensions 24 | { 25 | public static DBCommand Create (DB db, int id) 26 | { 27 | return DBRecord_Extensions.Create (db, new DBCommand (), DBCommand.TableName, id); 28 | } 29 | 30 | public static void Delete (DB db, int id, string Table) 31 | { 32 | DBCommand command = DBCommand_Extensions.Create (db, id); 33 | 34 | if (command == null) 35 | throw new Exception ("Invalid id."); 36 | 37 | using (IDbCommand cmd = db.CreateCommand ()) { 38 | cmd.CommandText = 39 | "DELETE FROM WorkFile WHERE EXISTS (SELECT * FROM Work WHERE Work.lane_id = @lane_id AND Work.command_id = @id AND Work.id = WorkFile.work_id); " + 40 | "DELETE FROM Work WHERE Work.lane_id = @lane_id AND Work.command_id = @id; " + 41 | "DELETE FROM Command WHERE id = @id;"; 42 | DB.CreateParameter (cmd, "lane_id", command.lane_id); 43 | DB.CreateParameter (cmd, "id", id); 44 | cmd.ExecuteNonQuery (); 45 | } 46 | } 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /MonkeyWrench.Database/Extensions/DBFileDeletionDirective_Extensions.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DBFileDeletionDirective_Extensions.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Data; 16 | using System.Linq; 17 | using System.Text; 18 | 19 | using MonkeyWrench.DataClasses; 20 | 21 | namespace MonkeyWrench.Database 22 | { 23 | public static class DBFileDeletionDirective_Extensions 24 | { 25 | 26 | public static List GetAll (DB db) 27 | { 28 | List result = new List (); 29 | 30 | using (IDbCommand cmd = db.CreateCommand ()) { 31 | cmd.CommandText = "SELECT * FROM FileDeletionDirective"; 32 | using (IDataReader reader = cmd.ExecuteReader ()) { 33 | while (reader.Read ()) { 34 | result.Add (new DBFileDeletionDirective (reader)); 35 | } 36 | } 37 | } 38 | 39 | return result; 40 | } 41 | } 42 | } 43 | -------------------------------------------------------------------------------- /MonkeyWrench.Database/Extensions/DBLaneDeletionDirective_Extensions.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DBLaneDeletionDirective_Extensions.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Linq; 16 | using System.Text; 17 | 18 | using MonkeyWrench.DataClasses; 19 | 20 | namespace MonkeyWrench.Database 21 | { 22 | public static class DBLaneDeletionDirective_Extensions 23 | { 24 | public static DBLaneDeletionDirective Create (DB db, int id) 25 | { 26 | return DBRecord_Extensions.Create (db, new DBLaneDeletionDirective (), DBLaneDeletionDirective.TableName, id); 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /MonkeyWrench.Database/Extensions/DBLoginView_Extensions.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DBLoginView_Extensions.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Data; 16 | using System.Linq; 17 | using System.Text; 18 | 19 | using MonkeyWrench.DataClasses; 20 | 21 | namespace MonkeyWrench.Database 22 | { 23 | public static class DBLoginView_Extensions 24 | { 25 | public static DBLoginView VerifyLogin (DB db, string person, string cookie, string ip4) 26 | { 27 | DBLoginView result; 28 | 29 | using (IDbCommand cmd = db.CreateCommand ()) { 30 | cmd.CommandText = "SELECT * FROM LoginView WHERE cookie = @cookie AND login = @person AND ip4 = @ip4 AND ip4 <> '';"; 31 | DB.CreateParameter (cmd, "cookie", cookie); 32 | DB.CreateParameter (cmd, "person", person); 33 | DB.CreateParameter (cmd, "ip4", ip4); 34 | using (IDataReader reader = cmd.ExecuteReader ()) { 35 | if (!reader.Read ()) 36 | return null; 37 | 38 | result = new DBLoginView (reader); 39 | 40 | if (reader.Read ()) 41 | return null; 42 | 43 | return result; 44 | } 45 | } 46 | } 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /MonkeyWrench.Database/Extensions/DBRevision_Extensions.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DBRevision_Extensions.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Linq; 16 | using System.Text; 17 | 18 | using MonkeyWrench.DataClasses; 19 | 20 | namespace MonkeyWrench.Database 21 | { 22 | public static class DBRevision_Extensions 23 | { 24 | public static DBRevision Create (DB db, int id) 25 | { 26 | return DBRecord_Extensions.Create (db, new DBRevision (), DBRevision.TableName, id); 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /MonkeyWrench.Database/Extensions/DBWorkFile_Extensions.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DBWorkFile_Extensions.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Data; 16 | using System.IO; 17 | using System.Linq; 18 | using System.Text; 19 | 20 | using MonkeyWrench.DataClasses; 21 | 22 | namespace MonkeyWrench.Database 23 | { 24 | public static class DBWorkFile_Extensions 25 | { 26 | public static DBWorkFile Create (DB db, int id) 27 | { 28 | return DBRecord_Extensions.Create (db, new DBWorkFile (), DBWorkFile.TableName, id); 29 | } 30 | 31 | 32 | public static void WriteToDisk (this DBWorkFile wf, DB db, string dir) 33 | { 34 | byte [] buffer = new byte [1024]; 35 | int read; 36 | string filename = Path.Combine (dir, wf.filename); 37 | DBFile file = DBFile_Extensions.Create (db, wf.file_id); 38 | 39 | if (!Directory.Exists (dir)) 40 | Directory.CreateDirectory (dir); 41 | 42 | using (Stream stream = db.Download (wf)) { 43 | using (FileStream fs = new FileStream (filename, FileMode.Create, FileAccess.Write, FileShare.Read)) { 44 | while (0 != (read = stream.Read (buffer, 0, buffer.Length))) { 45 | fs.Write (buffer, 0, read); 46 | } 47 | } 48 | } 49 | 50 | if (file.compressed_mime == "application/x-gzip") 51 | FileUtilities.GZUncompress (filename); 52 | } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /MonkeyWrench.Database/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /MonkeyWrench.Scheduler/.gitignore: -------------------------------------------------------------------------------- 1 | bin 2 | obj 3 | 4 | 5 | -------------------------------------------------------------------------------- /MonkeyWrench.Scheduler/ChangeLog: -------------------------------------------------------------------------------- 1 | 2009-07-23 Rolf Bjarne Kvinge 2 | 3 | * SVNUpdater.cs: 4 | * Updater.cs: Moved most of the code to MonkeyWrench.Database 5 | and the web service, call the web service instead. 6 | 7 | * MonkeyWrench.Scheduler.csproj: Updated. 8 | 9 | 2009-07-23 Rolf Bjarne Kvinge 10 | 11 | * SVNUpdater.cs: Don't crash if we get an invalid 12 | author from the svn server. 13 | 14 | 2009-07-23 Rolf Bjarne Kvinge 15 | 16 | * SVNUpdater.cs: Fix eol. 17 | 18 | 2009-07-23 Rolf Bjarne Kvinge 19 | 20 | * Updater.cs: 21 | * SVNUpdater.cs: Update according to DB API changes. 22 | 23 | 2009-06-04 Rolf Bjarne Kvinge 24 | 25 | * Updater.cs: We need the workaround for bug #499792 26 | here too. 27 | 28 | 2009-06-04 Rolf Bjarne Kvinge 29 | 30 | * SVNUpdater.cs: Store logs and diffs as files. 31 | 32 | 33 | -------------------------------------------------------------------------------- /MonkeyWrench.Scheduler/Updater.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Updater.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using log4net; 15 | 16 | using MonkeyWrench.Web.WebServices; 17 | 18 | namespace MonkeyWrench.Scheduler 19 | { 20 | public static class Updater 21 | { 22 | static readonly ILog log = LogManager.GetLogger (typeof (Updater)); 23 | 24 | public static void Main (string [] args) 25 | { 26 | ProcessHelper.Exit (Main2 (args)); // Work around #499702 27 | } 28 | 29 | public static int Main2 (string [] args) 30 | { 31 | try { 32 | if (!Configuration.LoadConfiguration (args)) 33 | return 1; 34 | 35 | WebServices WebService = WebServices.Create (); 36 | WebService.CreateLogin (Configuration.SchedulerAccount, Configuration.SchedulerPassword); 37 | WebService.ExecuteScheduler (WebService.WebServiceLogin, Configuration.ForceFullUpdate); 38 | } catch (Exception ex) { 39 | log.ErrorFormat ("Scheduler exception: {0}", ex); 40 | return 2; 41 | } 42 | 43 | return 0; 44 | } 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /MonkeyWrench.Scheduler/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /MonkeyWrench.Scheduler/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /MonkeyWrench.Test/.gitignore: -------------------------------------------------------------------------------- 1 | bin 2 | obj 3 | 4 | -------------------------------------------------------------------------------- /MonkeyWrench.Test/ChangeLog: -------------------------------------------------------------------------------- 1 | 2010-06-08 Rolf Bjarne Kvinge 2 | 3 | * Properties/AssemblyInfo.cs: Add missing file. 4 | 5 | 2009-10-19 Rolf Bjarne Kvinge 6 | 7 | * VCTest.cs: 8 | * SvnTest.cs: 9 | * Runner.cs: 10 | * Makefile: 11 | * Helpers.cs: 12 | * Helpers.cs: 13 | * GitTest.cs: 14 | * Database.cs: 15 | * Attributes.cs: 16 | * MonkeyWrench.Test.csproj: Added. Tests with a rudimentary framework. 17 | -------------------------------------------------------------------------------- /MonkeyWrench.Test/GitTest.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Data; 4 | using System.IO; 5 | using System.Text; 6 | 7 | namespace MonkeyWrench.Test 8 | { 9 | [Test] 10 | class GitTest : VCTest 11 | { 12 | protected override string GetVCType 13 | { 14 | get { return "git"; } 15 | } 16 | 17 | protected override void InitializeTestRepository (string path) 18 | { 19 | Execute (path, "git", "init"); 20 | } 21 | 22 | protected override void Commit (string filename, string contents, string commit_msg, string author, string email) 23 | { 24 | File.WriteAllText (Path.Combine (GetTestRepositoryPath, filename), contents); 25 | Execute (GetTestRepositoryPath, "git", "add", "--", filename); 26 | CommitInternal (filename, commit_msg, author, email); 27 | } 28 | 29 | protected override void CommitInternalWithMessageFile (string filename, string commit_msg_filename, string author, string email) 30 | { 31 | Execute (GetTestRepositoryPath, "git", "commit", "-F", commit_msg_filename, "--author=" + author + " <" + email + ">" , "--quiet", "--cleanup=verbatim"); 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /MonkeyWrench.Test/Makefile: -------------------------------------------------------------------------------- 1 | SOURCES = \ 2 | $(wildcard *.cs) \ 3 | $(wildcard */*.cs) 4 | 5 | TOPDIR = .. 6 | 7 | LIBRARY = MonkeyWrench.Test.exe 8 | OUT_DIR = $(TOPDIR)/class/lib 9 | OUT = $(OUT_DIR)/$(LIBRARY) 10 | 11 | BUILDABLE_REFS = \ 12 | $(wildcard $(OUT_DIR)/*.dll) 13 | 14 | REFERENCES = \ 15 | $(foreach ref,$(BUILDABLE_REFS),-r:$(ref)) \ 16 | -r:System.Data.dll 17 | 18 | $(OUT): $(SOURCES) $(BUILDABLE_REFS) 19 | @echo " DMCS $(LIBRARY)" 20 | @dmcs -target:exe -debug:full -out:$@ $(SOURCES) $(REFERENCES) 21 | 22 | test tests all: $(OUT) 23 | 24 | clean: 25 | @rm -f $(OUT)* 26 | 27 | publish install: all 28 | @: 29 | -------------------------------------------------------------------------------- /MonkeyWrench.Test/app.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.JSON/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Inherits="MonkeyWrench.Web.JSON.Global" %> 2 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.JSON/Lanes.ashx: -------------------------------------------------------------------------------- 1 | <%@ WebHandler Language="C#" Class="MonkeyWrench.Web.JSON.Lanes" %> 2 | 3 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.JSON/Lanes.ashx.cs: -------------------------------------------------------------------------------- 1 |  2 | using System; 3 | using System.Web; 4 | using System.Web.UI; 5 | using System.Data.Linq; 6 | 7 | using Newtonsoft.Json.Linq; 8 | 9 | namespace MonkeyWrench.Web.JSON { 10 | public class Lanes : System.Web.IHttpHandler { 11 | public void ProcessRequest (HttpContext context) { 12 | using (var db = new DB ()) 13 | using (var cmd = db.CreateCommand (@"SELECT id, lane FROM lane WHERE enabled;")) 14 | using (var reader = cmd.ExecuteReader ()) { 15 | var results = new JArray (); 16 | while (reader.Read ()) { 17 | var lane = new JObject (); 18 | lane ["id"] = reader.GetInt32 (0); 19 | lane ["name"] = reader.GetString (1); 20 | results.Add (lane); 21 | } 22 | 23 | context.Response.StatusCode = 200; 24 | context.Response.ContentType = "application/json"; 25 | context.Response.Write (results.ToString ()); 26 | }; 27 | } 28 | 29 | public bool IsReusable { 30 | get { 31 | return true; 32 | } 33 | } 34 | } 35 | } 36 | 37 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.JSON/RecentRevWorks.ashx: -------------------------------------------------------------------------------- 1 | <%@ WebHandler Language="C#" Class="MonkeyWrench.Web.JSON.RecentRevWorks" %> 2 | 3 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.JSON/Utils.cs: -------------------------------------------------------------------------------- 1 |  2 | using System; 3 | using System.Data; 4 | using System.Data.Linq; 5 | using System.Collections.Generic; 6 | 7 | namespace MonkeyWrench.Web.JSON 8 | { 9 | public static class Utils 10 | { 11 | /** 12 | * Returns true if the user with the passed name and password should be allowed access to the JSON API. 13 | * 14 | * If name is null, check for anonymous accesss instead. 15 | */ 16 | public static bool isAuthorized(DB db, string name, string password) { 17 | if (name == null) 18 | return Configuration.AllowAnonymousAccess; 19 | 20 | using (var cmd = db.CreateCommand (@"SELECT 1 FROM person WHERE login = @username AND password = @password AND password != ''")) { 21 | DB.CreateParameter (cmd, "username", name); 22 | // If password is null, then the condition "password = @password" in SQL will always fail. 23 | DB.CreateParameter (cmd, "password", password); 24 | 25 | using (var reader = cmd.ExecuteReader ()) { 26 | return reader.Read (); 27 | } 28 | } 29 | } 30 | 31 | /** 32 | * Returns the parsed uint, or null if parsing failed. 33 | */ 34 | public static uint? ToUInt32(this string s) { 35 | uint i; 36 | return UInt32.TryParse (s, out i) ? (uint?)i : null; 37 | } 38 | 39 | /** 40 | * Gets DateTime or null 41 | */ 42 | public static DateTime? GetDateTimeOrNull(this IDataRecord reader, int i) { 43 | return reader.IsDBNull (i) ? null : (DateTime?)reader.GetDateTime (i); 44 | } 45 | } 46 | } 47 | 48 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.JSON/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.JSON/web.config: -------------------------------------------------------------------------------- 1 |  2 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/.gitignore: -------------------------------------------------------------------------------- 1 | bin 2 | obj 3 | *.user 4 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/Admin.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" MasterPageFile="~/Master.master" AutoEventWireup="true" CodeBehind="Admin.aspx.cs" Inherits="Admin" %> 2 | 3 | 4 |
5 | Scheduler status: 6 | (Unknown)
7 | 8 |
9 | 10 |

11 | Retention directives status: 12 | (Unknown)
13 | 14 |
15 | 16 | 17 |
18 |
19 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/BuildBotStatus.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | 11 | 12 | public partial class BuildBotStatus { 13 | 14 | /// 15 | /// tblStatus control. 16 | /// 17 | /// 18 | /// Auto-generated field. 19 | /// To modify move field declaration from designer file to code-behind file. 20 | /// 21 | protected global::System.Web.UI.WebControls.Table tblStatus; 22 | 23 | /// 24 | /// lblMessage control. 25 | /// 26 | /// 27 | /// Auto-generated field. 28 | /// To modify move field declaration from designer file to code-behind file. 29 | /// 30 | protected global::System.Web.UI.WebControls.Label lblMessage; 31 | 32 | /// 33 | /// tblReleases control. 34 | /// 35 | /// 36 | /// Auto-generated field. 37 | /// To modify move field declaration from designer file to code-behind file. 38 | /// 39 | protected global::System.Web.UI.WebControls.Table tblReleases; 40 | } 41 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/BuildBotStatus.js: -------------------------------------------------------------------------------- 1 | var host_id = null; 2 | var table_releases = null; 3 | 4 | function selectBuildBotRelease(version, hid, tblReleases) { 5 | table_releases = tblReleases; 6 | host_id = hid; 7 | document.getElementById(tblReleases).style.display = "block"; 8 | } 9 | 10 | function executeBuildBotSelection(release_id) { 11 | document.getElementById(table_releases).style = "display: none"; 12 | window.location = window.location.pathname + "?action=select-release&release_id=" + release_id + "&host_id=" + host_id; 13 | } -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/Code/ChangeLog: -------------------------------------------------------------------------------- 1 | 2009-07-28 Rolf Bjarne Kvinge 2 | 3 | * Utils.cs: Moved some methods to MonkeyWrench.DataClasses 4 | assembly. 5 | 6 | 2009-07-28 Rolf Bjarne Kvinge 7 | 8 | * Utils.cs: Updated according to CreateWebServiceDownloadUrl 9 | changes. 10 | 11 | 2009-06-03 Rolf Bjarne Kvinge 12 | 13 | * WebServices.cs: Refactor CreateWebServiceDownloadUrl into 14 | two separate methods. 15 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/Delete.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page MasterPageFile="~/Master.master" Language="C#" AutoEventWireup="true" CodeBehind="Delete.aspx.cs" Inherits="Delete" %> 2 | 3 | 4 |
5 |

Confirm deletion

6 |
7 | 8 |
9 |
10 | 11 | 12 | 13 | 14 |
15 |
16 |
17 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/DownloadLatestFile.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DownloadLatestFile.aspx.cs" Inherits="DownloadLatestFile" %> 2 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/DownloadLatestFile.aspx.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * DownloadLatestFile.aspx.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.IO; 16 | using System.Web; 17 | using System.Net; 18 | 19 | using MonkeyWrench; 20 | using MonkeyWrench.Web.WebServices; 21 | 22 | public partial class DownloadLatestFile : System.Web.UI.Page 23 | { 24 | protected void Page_Load (object sender, EventArgs e) 25 | { 26 | int? lane_id = null; 27 | string lane = null; 28 | string filename = null; 29 | bool completed = false; 30 | bool successful = false; 31 | int tmp; 32 | 33 | lane = Request ["lane"]; 34 | if (int.TryParse (Request ["lane_id"], out tmp)) 35 | lane_id = tmp; 36 | 37 | bool.TryParse (Request ["completed"], out completed); 38 | bool.TryParse (Request ["successful"], out successful); 39 | 40 | filename = Request ["filename"]; 41 | 42 | using (WebServices ws = WebServices.Create ()) { 43 | int? id = ws.FindLatestWorkFileId (ws.WebServiceLogin, lane_id, lane, filename, completed, successful); 44 | 45 | if (id == null) 46 | throw new HttpException (404, "File not found"); 47 | 48 | Response.Redirect ("GetFile.aspx?id=" + id.Value.ToString (), false); 49 | } 50 | } 51 | } -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/DownloadLatestFile.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:2.0.50727.3082 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | 12 | 13 | public partial class DownloadLatestFile { 14 | } 15 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/EditHost.js: -------------------------------------------------------------------------------- 1 | function addLane() { 2 | var lane = document.getElementById("addhostlane").value; 3 | window.location += "&addlane=" + lane; 4 | } 5 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/EditHosts.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page MasterPageFile="~/Master.master" Language="C#" AutoEventWireup="true" Inherits="EditHosts" CodeBehind="EditHosts.aspx.cs" EnableViewState="false" %> 2 | 3 | 4 | 5 | 6 | 7 | Hosts 8 | 9 | 10 | Name 11 | Actions 12 | Description 13 | Architecture 14 | Last Report Date 15 | 16 | 17 | 18 | Add 19 | 20 | 21 | 22 | 23 | 24 |
25 |
-------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/EditHosts.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:2.0.50727.3053 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | 12 | 13 | public partial class EditHosts { 14 | 15 | /// 16 | /// tblHosts control. 17 | /// 18 | /// 19 | /// Auto-generated field. 20 | /// To modify move field declaration from designer file to code-behind file. 21 | /// 22 | protected global::System.Web.UI.WebControls.Table tblHosts; 23 | 24 | /// 25 | /// lblMessage control. 26 | /// 27 | /// 28 | /// Auto-generated field. 29 | /// To modify move field declaration from designer file to code-behind file. 30 | /// 31 | protected global::System.Web.UI.WebControls.Label lblMessage; 32 | } 33 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/EditHosts.js: -------------------------------------------------------------------------------- 1 | function addHost() { 2 | window.location = window.location.pathname + "?action=add&host=" + document.getElementById("txtHost").value; 3 | } -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/EditLaneFile.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | 11 | 12 | 13 | public partial class EditLaneFile { 14 | 15 | protected System.Web.UI.WebControls.Content Content2; 16 | 17 | protected System.Web.UI.WebControls.TextBox txtEditor; 18 | 19 | protected System.Web.UI.WebControls.Button cmdSave; 20 | 21 | protected System.Web.UI.WebControls.Button cmdCancel; 22 | 23 | protected System.Web.UI.WebControls.TextBox txtRoles; 24 | 25 | protected System.Web.UI.WebControls.ListBox lstLanes; 26 | } 27 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/EditLanes.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page MasterPageFile="~/Master.master" Language="C#" AutoEventWireup="true" Inherits="EditLanes" Codebehind="EditLanes.aspx.cs" %> 2 | 3 | 4 | 5 | 6 | 7 | Lanes 8 | 9 | 10 | Name 11 | Actions 12 | 13 | 14 | 15 | Add 16 | 17 | 18 |
19 |
20 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/EditLanes.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 2.0.50727.1433 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | 11 | 12 | public partial class EditLanes { 13 | 14 | /// 15 | /// tblLanes control. 16 | /// 17 | /// 18 | /// Auto-generated field. 19 | /// To modify move field declaration from designer file to code-behind file. 20 | /// 21 | protected global::System.Web.UI.WebControls.Table tblLanes; 22 | 23 | /// 24 | /// lblMessage control. 25 | /// 26 | /// 27 | /// Auto-generated field. 28 | /// To modify move field declaration from designer file to code-behind file. 29 | /// 30 | protected global::System.Web.UI.WebControls.Label lblMessage; 31 | } 32 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/EditLanes.js: -------------------------------------------------------------------------------- 1 | function addLane() { 2 | window.location = window.location.pathname + "?action=add&lane=" + document.getElementById("txtLane").value; 3 | } 4 | function cloneLane(id, lane) { 5 | var name = prompt("Enter the name of the new lane:", lane); 6 | if (name != null && name != "") 7 | window.location = window.location.pathname + "?action=clone&lane_id=" + id + "&lane=" + name; 8 | } -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/EnvironmentVariablesEditor.ascx: -------------------------------------------------------------------------------- 1 | <%@ Control Language="C#" AutoEventWireup="true" CodeBehind="EnvironmentVariablesEditor.ascx.cs" Inherits="MonkeyWrench.Web.UI.EnvironmentVariablesEditor" %> 2 |
3 | Environment variables for this lane or host 4 |
5 | You can refer to other environment variables with the ${VARIABLE} syntax. 6 |
7 | So for instance appending /tmp to PATH would be "${PATH}:/tmp"
8 | 9 | 10 | Name 11 | Value 12 | Action 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | Add 21 | 22 | 23 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/ErrorPage.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" MasterPageFile="~/Master.master" Inherits="MonkeyWrench.Web.UI.ErrorPage" %> 2 | 3 | 4 |

5 |

6 |
7 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/ErrorPage.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.17020 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | 11 | namespace MonkeyWrench.Web.UI { 12 | 13 | 14 | public partial class ErrorPage { 15 | 16 | protected System.Web.UI.WebControls.Content Content2; 17 | 18 | protected System.Web.UI.WebControls.Label errorHeader; 19 | 20 | protected System.Web.UI.WebControls.Label errorDescription; 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/GetFile.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" AutoEventWireup="true" Inherits="GetFile" Codebehind="GetFile.aspx.cs" %> 2 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/GetFile.aspx.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * GetFile.aspx.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.IO; 16 | using System.Web; 17 | using System.Net; 18 | 19 | using MonkeyWrench; 20 | using MonkeyWrench.Web.WebServices; 21 | 22 | public partial class GetFile : System.Web.UI.Page 23 | { 24 | protected void Page_Load (object sender, EventArgs e) 25 | { 26 | int id; 27 | 28 | if (!int.TryParse (Request ["id"], out id)) 29 | throw new HttpException ("Invalid id"); 30 | 31 | Response.Redirect (Utilities.CreateWebServiceDownloadUrl (Request, id, true), false); 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/GetFile.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:2.0.50727.3053 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | 12 | 13 | public partial class GetFile { 14 | } 15 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/GetLatest.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" Inherits="MonkeyWrench.Web.UI.GetLatest" CodeBehind="GetLatest.aspx.cs" %> 2 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/GetLatest.aspx.cs: -------------------------------------------------------------------------------- 1 |  2 | namespace MonkeyWrench.Web.UI 3 | { 4 | using System; 5 | using System.IO; 6 | using System.Net; 7 | using System.Web; 8 | using System.Web.UI; 9 | using System.Linq; 10 | using System.Collections.Generic; 11 | 12 | using MonkeyWrench.DataClasses; 13 | using MonkeyWrench.DataClasses.Logic; 14 | using MonkeyWrench.Web.WebServices; 15 | 16 | public partial class GetLatest : System.Web.UI.Page 17 | { 18 | 19 | private new Master Master 20 | { 21 | get { return base.Master as Master; } 22 | } 23 | 24 | private WebServiceLogin webServiceLogin; 25 | 26 | protected override void OnLoad (EventArgs e) 27 | { 28 | base.OnLoad (e); 29 | webServiceLogin = Authentication.CreateLogin (Request); 30 | 31 | Response.AppendHeader("Access-Control-Allow-Origin", "*"); 32 | Response.AppendHeader("Content-Type", "text/plain"); 33 | Response.StatusCode = 404; 34 | Response.Write("GetLatest is deprecated, please use http://wrench.internalx.com/Wrench/GetManifest.aspx or http://wrench.internalx.com/Wrench/GetMetadata.aspx"); 35 | } 36 | 37 | } 38 | } 39 | 40 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/GetLatest.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.17020 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | 11 | namespace MonkeyWrench.Web.UI 12 | { 13 | using System; 14 | using System.Web; 15 | using System.Web.UI; 16 | 17 | 18 | public partial class GetLatest 19 | { 20 | } 21 | } 22 | 23 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/GetManifest.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" Inherits="MonkeyWrench.Web.UI.GetManifest" CodeBehind="GetManifest.aspx.cs" %> 2 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/GetManifest.aspx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | using System.Net; 4 | using System.Web; 5 | using System.Web.UI; 6 | using System.Linq; 7 | using System.Collections.Generic; 8 | 9 | using MonkeyWrench.DataClasses; 10 | using MonkeyWrench.DataClasses.Logic; 11 | using MonkeyWrench.Web.WebServices; 12 | 13 | namespace MonkeyWrench.Web.UI 14 | { 15 | public partial class GetManifest : GetData 16 | { 17 | protected override string Filename { 18 | get { return "manifest"; } 19 | } 20 | } 21 | } 22 | 23 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/GetManifest.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | 11 | namespace MonkeyWrench.Web.UI { 12 | 13 | 14 | public partial class GetManifest { 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/GetMetadata.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" Inherits="MonkeyWrench.Web.UI.GetMetadata" CodeBehind="GetMetadata.aspx.cs" %> 2 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/GetMetadata.aspx.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | using System.Net; 4 | using System.Web; 5 | using System.Web.UI; 6 | using System.Linq; 7 | using System.Collections.Generic; 8 | 9 | using MonkeyWrench.DataClasses; 10 | using MonkeyWrench.DataClasses.Logic; 11 | using MonkeyWrench.Web.WebServices; 12 | 13 | namespace MonkeyWrench.Web.UI 14 | { 15 | public partial class GetMetadata : GetData 16 | { 17 | protected override string Filename { 18 | get { return "metadata.json"; } 19 | } 20 | } 21 | } 22 | 23 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/GetMetadata.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | 11 | namespace MonkeyWrench.Web.UI { 12 | 13 | 14 | public partial class GetMetadata { 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/GetStatus.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" Inherits="MonkeyWrench.Web.UI.GetStatus" CodeBehind="GetStatus.aspx.cs" ContentType="application/json" %> -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/GetStatus.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.17020 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | 11 | namespace MonkeyWrench.Web.UI 12 | { 13 | 14 | 15 | public partial class GetStatus 16 | { 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="MonkeyWrench.Web.UI.Global" Language="C#" %> 2 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/Helpers/OauthDataProvider.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using DotNetOpenAuth.AspNet; 3 | 4 | namespace MonkeyWrench.Web.UI 5 | { 6 | public class OAuthDataProvider : IOpenAuthDataProvider 7 | { 8 | public readonly static IOpenAuthDataProvider Instance = new OAuthDataProvider(); 9 | 10 | public string GetUserNameFromOpenAuth(string openAuthProvider, string openAuthId) 11 | { 12 | return openAuthId; 13 | } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/Json.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" Inherits="MonkeyWrench.Web.UI.Json" CodeBehind="Json.aspx.cs" ContentType="application/json" %> -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/Json.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.17020 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | 11 | namespace MonkeyWrench.Web.UI { 12 | 13 | 14 | public partial class Json { 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/Login.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" MasterPageFile="~/Master.master" AutoEventWireup="true" 2 | Inherits="Login" Codebehind="Login.aspx.cs" %> 3 | 4 | 5 | 6 |
7 | 8 |
9 | 10 |
11 | 12 |
13 | 14 |
15 | 16 | 17 |
18 | 19 | 20 | 21 |
22 | 23 |
24 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/Login.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | 11 | 12 | 13 | public partial class Login { 14 | 15 | protected System.Web.UI.WebControls.Content Content2; 16 | 17 | protected System.Web.UI.WebControls.Label lblUser; 18 | 19 | protected System.Web.UI.WebControls.TextBox txtUser; 20 | 21 | protected System.Web.UI.WebControls.Label lblPassword; 22 | 23 | protected System.Web.UI.WebControls.TextBox txtPassword; 24 | 25 | protected System.Web.UI.WebControls.Label lblMessage; 26 | 27 | protected System.Web.UI.WebControls.HiddenField txtReferrer; 28 | 29 | protected System.Web.UI.WebControls.Button cmdLogin; 30 | 31 | protected System.Web.UI.WebControls.Button cmdLoginOpenId; 32 | 33 | protected System.Web.UI.WebControls.Button cmdLoginOauth; 34 | 35 | protected System.Web.UI.WebControls.Button cmdLoginGitHubOauth; 36 | 37 | protected System.Web.UI.WebControls.Label lblMessageOpenId; 38 | } 39 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/Master.js: -------------------------------------------------------------------------------- 1 |  2 | function switchVisibility (varargs) { 3 | for (i = 0; i < arguments.length; i++) { 4 | var obj = document.getElementById(arguments [i]); 5 | if (obj.style.display == "block" || obj.style.display == null || obj.style.display == "") { 6 | obj.style.display = "none"; 7 | } else if (obj.style.display == "none") { 8 | obj.style.display = "block"; 9 | } 10 | } 11 | } 12 | 13 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/Master.master.designer.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.17020 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | 11 | 12 | 13 | public partial class Master { 14 | 15 | protected System.Web.UI.HtmlControls.HtmlLink cssSkin; 16 | 17 | protected System.Web.UI.HtmlControls.HtmlLink idFavicon; 18 | 19 | protected System.Web.UI.HtmlControls.HtmlImage imgLogo; 20 | 21 | protected System.Web.UI.WebControls.Literal cellLogin; 22 | 23 | protected System.Web.UI.WebControls.Literal cellUploadStatus; 24 | 25 | protected System.Web.UI.HtmlControls.HtmlGenericControl adminmenu; 26 | 27 | protected System.Web.UI.WebControls.Literal cellLogout; 28 | 29 | protected System.Web.UI.WebControls.Table tableMainTree; 30 | 31 | protected System.Web.UI.WebControls.Table tableHostStatus; 32 | 33 | protected System.Web.UI.HtmlControls.HtmlForm form1; 34 | 35 | protected System.Web.UI.WebControls.ContentPlaceHolder content; 36 | } 37 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/MonkeyWrench.js: -------------------------------------------------------------------------------- 1 |  2 | function editEnvironmentVariable(lane_id, host_id, old_value, id, name) { 3 | var new_value = prompt("Enter the new value of the environment variable", old_value); 4 | if (new_value != old_value && new_value != null && new_value != undefined) { 5 | window.location = window.location.pathname + "?host_id=" + host_id + "&lane_id=" + lane_id + "&action=editEnvironmentVariableValue&id=" + id + "&value=" + encodeURIComponent(new_value) + "&name=" + encodeURIComponent(name); 6 | } 7 | } -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/Notifications.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.17020 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | 11 | 12 | 13 | public partial class Notifications { 14 | 15 | protected System.Web.UI.WebControls.Content Content2; 16 | 17 | protected System.Web.UI.WebControls.Repeater notificationsRepeater; 18 | 19 | protected System.Web.UI.WebControls.LinkButton notificationRemove; 20 | 21 | protected System.Web.UI.WebControls.TextBox txtName; 22 | 23 | protected System.Web.UI.WebControls.DropDownList cmbIdentity; 24 | 25 | protected System.Web.UI.WebControls.DropDownList cmbMode; 26 | 27 | protected System.Web.UI.WebControls.DropDownList cmbNotificationType; 28 | 29 | protected System.Web.UI.WebControls.LinkButton lnkAdd; 30 | 31 | protected System.Web.UI.WebControls.Label lblMessage; 32 | } 33 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/Properties/Settings.Designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.239 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace MonkeyWrench.Web.UI.Properties { 12 | 13 | 14 | [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 15 | [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")] 16 | internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { 17 | 18 | private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 19 | 20 | public static Settings Default { 21 | get { 22 | return defaultInstance; 23 | } 24 | } 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/Properties/Settings.settings: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/Releases.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page MasterPageFile="~/Master.master" Language="C#" AutoEventWireup="true" Inherits="Releases" CodeBehind="Releases.aspx.cs" EnableViewState="false" %> 2 | 3 | 4 | 5 | 6 |

Releases

7 | 8 | 9 | Version 10 | Revision 11 | Description 12 | Filename 13 | Actions 14 | 15 | 16 | 17 |
18 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/Releases.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | 11 | 12 | public partial class Releases { 13 | 14 | /// 15 | /// tblStatus control. 16 | /// 17 | /// 18 | /// Auto-generated field. 19 | /// To modify move field declaration from designer file to code-behind file. 20 | /// 21 | protected global::System.Web.UI.WebControls.Table tblStatus; 22 | 23 | /// 24 | /// lblMessage control. 25 | /// 26 | /// 27 | /// Auto-generated field. 28 | /// To modify move field declaration from designer file to code-behind file. 29 | /// 30 | protected global::System.Web.UI.WebControls.Label lblMessage; 31 | } 32 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/ReportCommit.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" AutoEventWireup="true" Inherits="ReportCommit" Codebehind="ReportCommit.aspx.cs" %> 2 | 3 | 4 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/ReportCommit.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:2.0.50727.3053 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | 12 | 13 | public partial class ReportCommit { 14 | } 15 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/ReportGitHubCommit.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" AutoEventWireup="true" Inherits="ReportGitHubCommit" Codebehind="ReportGitHubCommit.aspx.cs" %> 2 | 3 | 4 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/ReportGitHubCommit.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:2.0.50727.3603 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | 12 | 13 | public partial class ReportGitHubCommit { 14 | } 15 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/SelectLanes.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" MasterPageFile="~/Master.master" AutoEventWireup="true" CodeBehind="SelectLanes.aspx.cs" Inherits="SelectLanes" %> 2 | 3 | 4 | 5 | 6 | Select lanes to view 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/SelectLanes.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:2.0.50727.3082 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | 12 | 13 | public partial class SelectLanes { 14 | 15 | /// 16 | /// tblLanes control. 17 | /// 18 | /// 19 | /// Auto-generated field. 20 | /// To modify move field declaration from designer file to code-behind file. 21 | /// 22 | protected global::System.Web.UI.WebControls.Table tblLanes; 23 | 24 | /// 25 | /// cmdOK control. 26 | /// 27 | /// 28 | /// Auto-generated field. 29 | /// To modify move field declaration from designer file to code-behind file. 30 | /// 31 | protected global::System.Web.UI.WebControls.Button cmdOK; 32 | } 33 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/User.js: -------------------------------------------------------------------------------- 1 | function adduseremail(selflink) { 2 | var email = prompt("Enter email:"); 3 | if (email != null && email != "") 4 | window.location = selflink + "&action=addemail&email=" + encodeURIComponent(email); 5 | } -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/Users.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" MasterPageFile="~/Master.master" AutoEventWireup="true" Inherits="Users" Codebehind="Users.aspx.cs" EnableViewState="false" %> 2 | 3 | 4 |
5 | 6 | 7 | Users 8 | 9 | 10 | User 11 | FullName 12 | Roles 13 | Password 14 | Actions 15 | 16 | 17 | Create new user 18 | 19 | 20 | 21 |
22 |
23 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/Users.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:2.0.50727.3053 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | 12 | 13 | public partial class Users { 14 | 15 | /// 16 | /// tblUsers control. 17 | /// 18 | /// 19 | /// Auto-generated field. 20 | /// To modify move field declaration from designer file to code-behind file. 21 | /// 22 | protected global::System.Web.UI.WebControls.Table tblUsers; 23 | 24 | /// 25 | /// lblMessage control. 26 | /// 27 | /// 28 | /// Auto-generated field. 29 | /// To modify move field declaration from designer file to code-behind file. 30 | /// 31 | protected global::System.Web.UI.WebControls.Label lblMessage; 32 | } 33 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/ViewAuditEntries.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page MasterPageFile="~/Master.master" Language="C#" AutoEventWireup="true" Inherits="ViewAuditEntries" Codebehind="ViewAuditEntries.aspx.cs" EnableSessionState="False" %> 2 | 3 | 4 | 5 |
6 |

Audit History

7 |
8 |
9 |
10 |
11 |
12 | 19 |
20 | 21 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/ViewAuditEntries.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.17020 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | 11 | 12 | 13 | public partial class ViewAuditEntries { 14 | 15 | protected System.Web.UI.WebControls.Content Content2; 16 | 17 | protected System.Web.UI.HtmlControls.HtmlGenericControl auditList; 18 | 19 | protected System.Web.UI.HtmlControls.HtmlGenericControl pager; 20 | } 21 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/ViewHostHistory.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page MasterPageFile="~/Master.master" Language="C#" AutoEventWireup="true" Inherits="ViewHostHistory" Codebehind="ViewHostHistory.aspx.cs" EnableSessionState="False" %> 2 | 3 | 4 |
5 |
6 |
-------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/ViewHostHistory.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | 11 | 12 | public partial class ViewHostHistory { 13 | 14 | /// 15 | /// hostheader control. 16 | /// 17 | /// 18 | /// Auto-generated field. 19 | /// To modify move field declaration from designer file to code-behind file. 20 | /// 21 | protected global::System.Web.UI.HtmlControls.HtmlGenericControl hostheader; 22 | 23 | /// 24 | /// hosthistory control. 25 | /// 26 | /// 27 | /// Auto-generated field. 28 | /// To modify move field declaration from designer file to code-behind file. 29 | /// 30 | protected global::System.Web.UI.HtmlControls.HtmlGenericControl hosthistory; 31 | } 32 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/ViewHtmlReport.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" AutoEventWireup="true" Inherits="ViewHtmlReport" Codebehind="ViewHtmlReport.aspx.cs" %> 2 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/ViewHtmlReport.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:2.0.50727.3053 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | 12 | 13 | public partial class ViewHtmlReport { 14 | } 15 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/ViewHtmlReportEmbedded.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page MasterPageFile="~/Master.master" Language="C#" AutoEventWireup="true" Inherits="ViewHtmlReportEmbedded" Codebehind="ViewHtmlReportEmbedded.aspx.cs" %> 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/ViewHtmlReportEmbedded.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:2.0.50727.3603 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | 12 | 13 | public partial class ViewHtmlReportEmbedded { 14 | 15 | /// 16 | /// header control. 17 | /// 18 | /// 19 | /// Auto-generated field. 20 | /// To modify move field declaration from designer file to code-behind file. 21 | /// 22 | protected global::System.Web.UI.HtmlControls.HtmlGenericControl header; 23 | 24 | /// 25 | /// htmlreport control. 26 | /// 27 | /// 28 | /// Auto-generated field. 29 | /// To modify move field declaration from designer file to code-behind file. 30 | /// 31 | protected global::System.Web.UI.HtmlControls.HtmlGenericControl htmlreport; 32 | } 33 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/ViewLane.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page MasterPageFile="~/Master.master" Language="C#" AutoEventWireup="true" Inherits="ViewLane" Codebehind="ViewLane.aspx.cs" %> 2 | 3 | 4 | 5 | 6 |
7 | 8 |
9 |
-------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/ViewLane.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | 11 | 12 | public partial class ViewLane { 13 | 14 | /// 15 | /// header control. 16 | /// 17 | /// 18 | /// Auto-generated field. 19 | /// To modify move field declaration from designer file to code-behind file. 20 | /// 21 | protected global::System.Web.UI.HtmlControls.HtmlGenericControl header; 22 | 23 | /// 24 | /// buildtable control. 25 | /// 26 | /// 27 | /// Auto-generated field. 28 | /// To modify move field declaration from designer file to code-behind file. 29 | /// 30 | protected global::System.Web.UI.HtmlControls.HtmlGenericControl buildtable; 31 | 32 | /// 33 | /// lblMessage control. 34 | /// 35 | /// 36 | /// Auto-generated field. 37 | /// To modify move field declaration from designer file to code-behind file. 38 | /// 39 | protected global::System.Web.UI.WebControls.Label lblMessage; 40 | } 41 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/ViewLane.js: -------------------------------------------------------------------------------- 1 | function confirmViewLaneAction(url, action) { 2 | var msg = "Are you sure you want to " + action + " the work while there is a bot working on this revision? " + 3 | "It may confuse the bot and require manual intervention to recover it. " + 4 | "The recommended way is to either wait until all work is done, or abort (and then wait until a step turns from 'aborted' to 'failed', " + 5 | "since that's when you know the bot has processed the abort request)."; 6 | var rsp = confirm(msg); 7 | if (rsp) 8 | window.location = url; 9 | } 10 | 11 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/ViewLaneFileHistory.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" AutoEventWireup="true" Inherits="ViewLaneFileHistory" MasterPageFile="~/Master.master" EnableViewState="false" Codebehind="ViewLaneFileHistory.aspx.cs" %> 2 | 3 | 4 |
5 | 6 |
7 |
8 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/ViewLaneFileHistory.aspx.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * ViewLaneFileHistory.aspx.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Web; 16 | using System.Web.UI; 17 | using System.Web.UI.WebControls; 18 | 19 | using MonkeyWrench.DataClasses; 20 | using MonkeyWrench.DataClasses.Logic; 21 | using MonkeyWrench.Web.WebServices; 22 | 23 | public partial class ViewLaneFileHistory : System.Web.UI.Page 24 | { 25 | private new Master Master 26 | { 27 | get { return base.Master as Master; } 28 | } 29 | 30 | protected void Page_Load (object sender, EventArgs e) 31 | { 32 | int id; 33 | 34 | if (!IsPostBack) { 35 | if (int.TryParse (Request ["id"], out id)) { 36 | GetViewLaneFileHistoryDataResponse response; 37 | response = Utils.LocalWebService.GetViewLaneFileHistoryData (Master.WebServiceLogin, id); 38 | 39 | tblFiles.Rows.Add (Utils.CreateTableHeaderRow ("Date changed", "Actions")); 40 | foreach (DBLanefile file in response.Lanefiles) { 41 | tblFiles.Rows.Add (Utils.CreateTableRow ( 42 | file.changed_date.Value.ToString ("yyyy/MM/dd HH:mm:ss"), 43 | string.Format ("View", file.id))); 44 | } 45 | } 46 | } 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/ViewLaneFileHistory.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 2.0.50727.1433 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | 11 | 12 | public partial class ViewLaneFileHistory { 13 | protected System.Web.UI.WebControls.Content Content2; 14 | protected System.Web.UI.WebControls.Table tblFiles; 15 | } 16 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/ViewServerLog.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" MasterPageFile="~/Master.master" AutoEventWireup="true" Inherits="ViewServerLog" CodeBehind="ViewServerLog.aspx.cs" %> 2 | 3 | 4 | - 5 | Last 4kb - 6 | Last 32kb - 7 | Last 256kb - 8 | Last 1024kb 9 |
10 |
11 | 12 |
13 | Last 4kb - 14 | Last 32kb - 15 | Last 256kb - 16 | Last 1024kb 17 |
18 | 19 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/ViewServerLog.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // 5 | // Changes to this file may cause incorrect behavior and will be lost if 6 | // the code is regenerated. 7 | // 8 | //------------------------------------------------------------------------------ 9 | 10 | 11 | 12 | public partial class ViewServerLog { 13 | 14 | /// 15 | /// lblLength control. 16 | /// 17 | /// 18 | /// Auto-generated field. 19 | /// To modify move field declaration from designer file to code-behind file. 20 | /// 21 | protected global::System.Web.UI.WebControls.Label lblLength; 22 | 23 | /// 24 | /// divLog control. 25 | /// 26 | /// 27 | /// Auto-generated field. 28 | /// To modify move field declaration from designer file to code-behind file. 29 | /// 30 | protected global::System.Web.UI.WebControls.Label divLog; 31 | } 32 | 33 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/ViewTable.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page MasterPageFile="~/Master.master" Language="C#" AutoEventWireup="true" Inherits="ViewTable" EnableViewState="false" Codebehind="ViewTable.aspx.cs" %> 2 | 3 | 4 | 5 | 6 | 7 |
8 |
9 | 10 |
11 |
12 |
-------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/ViewTable.js: -------------------------------------------------------------------------------- 1 | function clearRevisions(lane_id, host_id) { 2 | try { 3 | var td; 4 | var names = ""; 5 | var chk_id = 0; 6 | 7 | do { 8 | td = document.getElementById("id_revision_chk_" + chk_id); 9 | chk_id++; 10 | 11 | if (td == null) 12 | break; 13 | 14 | if (td.localName == "INPUT" && td.checked) 15 | names += td.name + ";"; 16 | } while (true); 17 | window.location = window.location.pathname + "?lane_id=" + lane_id + "&host_id=" + host_id + "&action=clearrevisions&revisions=" + names; 18 | } catch (e) { 19 | alert(e); 20 | } 21 | } -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/ViewWorkTable.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" MasterPageFile="~/Master.master" AutoEventWireup="true" Inherits="ViewWorkTable" Codebehind="ViewWorkTable.aspx.cs" %> 2 | 3 | 4 | 5 |
6 |
7 | 8 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/ViewWorkTable.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:2.0.50727.3082 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | 12 | 13 | public partial class ViewWorkTable { 14 | 15 | /// 16 | /// header control. 17 | /// 18 | /// 19 | /// Auto-generated field. 20 | /// To modify move field declaration from designer file to code-behind file. 21 | /// 22 | protected global::System.Web.UI.HtmlControls.HtmlGenericControl header; 23 | 24 | /// 25 | /// buildtable control. 26 | /// 27 | /// 28 | /// Auto-generated field. 29 | /// To modify move field declaration from designer file to code-behind file. 30 | /// 31 | protected global::System.Web.UI.HtmlControls.HtmlGenericControl buildtable; 32 | } 33 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/clientaccesspolicy.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/doc/Faq.htm: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Faq 5 | 6 | 7 | 8 |
    9 |
  • Reschedule a step / revision
      10 |
    • Abort a step: Click 'abort'. Important: After clicking abort, the state will 11 | switch to "aborted", but you must wait until the state has changed to "issues" 12 | or "failed" until doing anything else with that step (otherwise the bot will 13 | never realize you aborted it).
    • 14 |
    • Reschedule a step: Click 'clear'. Don't do this after a revision has completed 15 | (i.e. cleaned up), the step will run again and fail (since everything has been 16 | deleted).
    • 17 |
    • Reschedule a revision: click 'reset work'. Don't do this while a bot is working 18 | on the revision (you may abort all steps first to shortcurcuit a bit).
    • 19 |
    • TODO: make the web ui enforce all the "Don't do this".
    • 20 |
    21 |
  • 22 |
23 | ViewLane.aspx Screenshot 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/doc/index.html: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | MonkeyWrench Documentation 7 | 8 | 9 |

MonkeyWrench

10 | 16 | 17 | 18 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/index.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | // ------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Mono Runtime Version: 4.0.30319.17020 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | // ------------------------------------------------------------------------------ 10 | 11 | 12 | 13 | public partial class index { 14 | 15 | protected System.Web.UI.WebControls.Content Content1; 16 | 17 | protected System.Web.UI.HtmlControls.HtmlGenericControl buildtable; 18 | 19 | protected System.Web.UI.WebControls.Label lblMessage; 20 | } 21 | 22 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/res/minus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/monkeywrench/729c85203e9bc92128b8f4acb00407b9ec81d405/MonkeyWrench.Web.UI/res/minus.gif -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/res/moonlight/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/monkeywrench/729c85203e9bc92128b8f4acb00407b9ec81d405/MonkeyWrench.Web.UI/res/moonlight/favicon.ico -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/res/moonlight/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/monkeywrench/729c85203e9bc92128b8f4acb00407b9ec81d405/MonkeyWrench.Web.UI/res/moonlight/logo.png -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/res/moonlight/moonlight.css: -------------------------------------------------------------------------------- 1 |  -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/res/plus.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/monkeywrench/729c85203e9bc92128b8f4acb00407b9ec81d405/MonkeyWrench.Web.UI/res/plus.gif -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/res/skin.css: -------------------------------------------------------------------------------- 1 | /* This is the default style sheet if no skin is selected. This style sheet will not be used at all if a skin is selected */ -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/res/wrench/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/monkeywrench/729c85203e9bc92128b8f4acb00407b9ec81d405/MonkeyWrench.Web.UI/res/wrench/favicon.ico -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/res/wrench/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/monkeywrench/729c85203e9bc92128b8f4acb00407b9ec81d405/MonkeyWrench.Web.UI/res/wrench/logo.png -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/res/wrench/wrench.css: -------------------------------------------------------------------------------- 1 | #siteheader 2 | { 3 | background-color: #666666; 4 | } -------------------------------------------------------------------------------- /MonkeyWrench.Web.UI/robots.txt: -------------------------------------------------------------------------------- 1 | User-agent: * 2 | Disallow: / 3 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.WebService/.gitignore: -------------------------------------------------------------------------------- 1 | bin 2 | obj 3 | 4 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.WebService/Download.aspx: -------------------------------------------------------------------------------- 1 | <%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Download.aspx.cs" Inherits="MonkeyWrench.WebServices.Download" %> 2 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.WebService/Download.aspx.designer.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:2.0.50727.3053 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | namespace MonkeyWrench.WebServices { 12 | 13 | 14 | public partial class Download { 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.WebService/Global.asax: -------------------------------------------------------------------------------- 1 | <%@ Application Codebehind="Global.asax.cs" Inherits="MonkeyWrench.WebServices.Global" Language="C#" %> 2 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.WebService/Makefile: -------------------------------------------------------------------------------- 1 | 2 | wsdl: WebServices.wsdl 3 | 4 | WebServices.wsdl: all 5 | curl http://localhost:8123/WebServices/WebServices.asmx?wsdl > WebServices.wsdl -m 5 6 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.WebService/Notification.ashx: -------------------------------------------------------------------------------- 1 | <%@ WebHandler Language="C#" Class="MonkeyWrench.WebServices.WebNotification" %> 2 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.WebService/WebServices.asmx: -------------------------------------------------------------------------------- 1 | <%@ WebService Language="C#" CodeBehind="~/WebServices/WebServices.asmx.cs" Class="MonkeyWrench.WebServices.WebServices" %> -------------------------------------------------------------------------------- /MonkeyWrench.Web.WebService/WrenchBuild.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using MonkeyWrench.DataClasses; 3 | 4 | namespace MonkeyWrench.WebServices 5 | { 6 | // POCO representing a build 7 | public struct Build 8 | { 9 | // Either end date for finished job or start date for running/not ran job 10 | public DateTime Date { get; set; } 11 | public string Commit { get; set; } 12 | public int? CommitId { get; set; } 13 | public string Lane { get; set; } 14 | public string Project { get; set; } 15 | public DBState State { get; set; } 16 | public string Author { get; set; } 17 | public string BuildBot { get; set; } 18 | public string Url { get; set; } 19 | } 20 | } 21 | 22 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.WebService/WsdlGenerator.cmd: -------------------------------------------------------------------------------- 1 | csc -target:library -out:WsdlGenerator.dll -keyfile:WsdlGenerator.snk WsdlGenerator.cs 2 | gacutil -i WsdlGenerator.dll 3 | wsdl /out:WebServices.cs /namespace:MonkeyWrench.Web.WebServices /fields /parameters:WsdlGenerator.xml WebServices.wsdl 4 | gacutil -u WsdlGenerator 5 | move WebServices.cs ..\MonkeyWrench.DataClasses\WebServices.Generated.cs -------------------------------------------------------------------------------- /MonkeyWrench.Web.WebService/WsdlGenerator.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Xml.Schema; 3 | using System.Xml.Serialization; 4 | using System.Xml.Serialization.Advanced; 5 | using System.CodeDom; 6 | using System.CodeDom.Compiler; 7 | 8 | namespace MonkeyWrench.Web.WebServices 9 | { 10 | public class WsdlGenerator : SchemaImporterExtension 11 | { 12 | public override string ImportSchemaType (string name, string ns, XmlSchemaObject context, XmlSchemas schemas, XmlSchemaImporter importer, CodeCompileUnit compileUnit, CodeNamespace mainNamespace, CodeGenerationOptions options, CodeDomProvider codeProvider) 13 | { 14 | if (ns == "http://monkeywrench.novell.com/") { 15 | if (name != "ArrayOfString" && name != "ArrayOfInt1") { 16 | mainNamespace.Imports.Add (new CodeNamespaceImport ("MonkeyWrench.DataClasses")); 17 | mainNamespace.Imports.Add (new CodeNamespaceImport ("MonkeyWrench.DataClasses.Logic")); 18 | return name; 19 | } 20 | } 21 | 22 | return base.ImportSchemaType (name, ns, context, schemas, importer, compileUnit, mainNamespace, options, codeProvider); 23 | } 24 | } 25 | } -------------------------------------------------------------------------------- /MonkeyWrench.Web.WebService/WsdlGenerator.snk: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/monkeywrench/729c85203e9bc92128b8f4acb00407b9ec81d405/MonkeyWrench.Web.WebService/WsdlGenerator.snk -------------------------------------------------------------------------------- /MonkeyWrench.Web.WebService/WsdlGenerator.xml: -------------------------------------------------------------------------------- 1 | 2 | true 3 | true 4 | 5 | http://www.contoso.com/service.asmx?WSDL 6 | 7 | 8 | true 9 | 10 | MonkeyWrench.Web.WebServices.WsdlGenerator, WsdlGenerator, Version=0.0.0.0, Culture=neutral, PublicKeyToken=e1837365e0341c46 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.WebService/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /MonkeyWrench.Web.WebService/web.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /MonkeyWrench/.gitignore: -------------------------------------------------------------------------------- 1 | bin 2 | obj 3 | AssemblyInfo.cs 4 | AssemblyInfo.tmp 5 | 6 | -------------------------------------------------------------------------------- /MonkeyWrench/AssemblyInfo.cs.in: -------------------------------------------------------------------------------- 1 | /* 2 | * AssemblyInfo.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2010 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System.Reflection; 14 | using System.Runtime.CompilerServices; 15 | using System.Runtime.InteropServices; 16 | 17 | // General Information about an assembly is controlled through the following 18 | // set of attributes. Change these attribute values to modify the information 19 | // associated with an assembly. 20 | [assembly: AssemblyTitle ("MonkeyWrench")] 21 | [assembly: AssemblyConfiguration ("")] 22 | [assembly: AssemblyCompany ("Novell, Inc")] 23 | [assembly: AssemblyProduct ("MonkeyWrench")] 24 | 25 | // the following two are generated at build time 26 | [assembly: AssemblyDescription (@"")] 27 | [assembly: AssemblyVersion ("")] 28 | 29 | -------------------------------------------------------------------------------- /MonkeyWrench/Async.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Async.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Text; 16 | using System.Threading; 17 | 18 | namespace MonkeyWrench 19 | { 20 | public static class Async 21 | { 22 | public static void Execute (WaitCallback callback, object state) 23 | { 24 | ThreadPool.QueueUserWorkItem (delegate (object st) 25 | { 26 | try { 27 | callback (state); 28 | } catch (Exception ex) { 29 | // This is really exceptional, so don't try any fancy logging. 30 | // Leaking an exception here will cause the entire process to die. 31 | try { 32 | Console.WriteLine ("Exception during async execution: {0}", ex); 33 | } catch { 34 | // ignore completely 35 | } 36 | } 37 | }); 38 | } 39 | public static void Execute (WaitCallback callback) 40 | { 41 | Execute (callback, null); 42 | } 43 | } 44 | } 45 | -------------------------------------------------------------------------------- /MonkeyWrench/Exceptions.cs: -------------------------------------------------------------------------------- 1 |  2 | using System; 3 | 4 | namespace MonkeyWrench { 5 | /** 6 | * Thrown when a user does not have access to a resource. 7 | */ 8 | public class UnauthorizedException : Exception { 9 | public UnauthorizedException () {} 10 | public UnauthorizedException (string message) : base (message) {} 11 | public UnauthorizedException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) : base (info, context) {} 12 | public UnauthorizedException (string message, Exception innerException) : base (message, innerException) {} 13 | } 14 | } -------------------------------------------------------------------------------- /MonkeyWrench/IDB.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Data; 4 | using System.Text; 5 | 6 | namespace MonkeyWrench 7 | { 8 | public interface IDB 9 | { 10 | IDbCommand CreateCommand (); 11 | IDbTransaction BeginTransaction (); 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /MonkeyWrench/Makefile: -------------------------------------------------------------------------------- 1 | 2 | generate-assembly-info: 3 | @echo "Updating AssemblyInfo" 4 | @cp AssemblyInfo.cs.in AssemblyInfo.tmp 5 | @sed -e "s/.*AssemblyDescription.*/[assembly: AssemblyDescription (@\"MonkeyWrench (branch: `git branch | grep "^[*] " | sed 's/^[*] //'` commit #`git log --pretty=format:''|wc -l` sha: `git log --pretty=format:'%h' -1` date: `git log --pretty=format:'%ci' -1`) subject: `git log --pretty=format:'%s' -1 | sed 's_\\"_\\"\\"_g' | sed 's_/__g'`)\")]/" \ 6 | -e "s/.*AssemblyVersion.*/[assembly: AssemblyVersion (\"1.0.0.`git log --pretty=format:''|wc -l|tr -d ' '`\")]/" AssemblyInfo.cs.in > AssemblyInfo.tmp 7 | @rsync --checksum AssemblyInfo.tmp AssemblyInfo.cs 8 | -------------------------------------------------------------------------------- /MonkeyWrench/MimeTypes.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | 6 | namespace MonkeyWrench 7 | { 8 | public static class MimeTypes 9 | { 10 | public const string GZ = "application/x-gzip"; 11 | public const string ZIP = "application/zip"; 12 | public const string BZ2 = "application/x-bzip2"; 13 | public const string BZ = "application/x-bzip"; 14 | public const string TAR = "application/x-tar"; 15 | public const string BMP = "image/bmp"; 16 | public const string JPG = "image/jpeg"; 17 | public const string PNG = "image/png"; 18 | public const string LOG = "text/plain"; 19 | public const string TXT = "text/plain"; 20 | public const string HTML = "text/html"; 21 | public const string OCTET_STREAM = "application/octet-stream"; 22 | public const string XPI = "application/x-xpinstall"; 23 | public const string CRX = "application/x-chrome-extension"; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /MonkeyWrench/Platform.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * Platform.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | namespace MonkeyWrench 14 | { 15 | public enum Platform 16 | { 17 | Windows, 18 | Linux, 19 | Mac 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /MonkeyWrench/ProcessHelperWindows.cs: -------------------------------------------------------------------------------- 1 | /* 2 | * ProcessHelperWindows.cs 3 | * 4 | * Authors: 5 | * Rolf Bjarne Kvinge (RKvinge@novell.com) 6 | * 7 | * Copyright 2009 Novell, Inc. (http://www.novell.com) 8 | * 9 | * See the LICENSE file included with the distribution for details. 10 | * 11 | */ 12 | 13 | using System; 14 | using System.Collections.Generic; 15 | using System.Diagnostics; 16 | using System.Runtime.InteropServices; 17 | using System.Text; 18 | 19 | namespace MonkeyWrench 20 | { 21 | internal class ProcessHelperWindows : IProcessHelper 22 | { 23 | public override void PrintProcesses (SynchronizedStreamWriter log) 24 | { 25 | log.WriteLine ("IProcessHelper.PrintProcesses is unimplemented on windows"); 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /MonkeyWrench/SynchronizedStreamWriter.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.IO; 3 | 4 | namespace MonkeyWrench 5 | { 6 | public class SynchronizedStreamWriter : IDisposable 7 | { 8 | StreamWriter writer; 9 | object sync_object = new object (); 10 | DateTime last_stamp; 11 | 12 | public SynchronizedStreamWriter (StreamWriter writer) 13 | { 14 | this.writer = writer; 15 | this.last_stamp = DateTime.Now; 16 | } 17 | 18 | public DateTime LastStamp { 19 | get { 20 | lock (sync_object) 21 | return last_stamp; 22 | } 23 | } 24 | 25 | public void WriteLine (string line) 26 | { 27 | lock (sync_object) { 28 | writer.WriteLine (line); 29 | writer.Flush (); 30 | last_stamp = DateTime.Now; 31 | } 32 | } 33 | 34 | public void Dispose () 35 | { 36 | lock (sync_object) { 37 | writer.Dispose (); 38 | } 39 | } 40 | } 41 | } 42 | 43 | -------------------------------------------------------------------------------- /MonkeyWrench/generate-assembly-info.rb: -------------------------------------------------------------------------------- 1 | assemblypath = File.expand_path(File.dirname(__FILE__)) 2 | branch = `git branch`.strip.match(/\* (.*)/)[1] 3 | no_commits = `git log --pretty=format:''`.scan(/\n/).length 4 | sha = `git log --pretty=format:%h -1` 5 | date = `git log --pretty=format:%ci -1` 6 | subject = `git log --pretty=format:%s -1`.gsub '\"', '\"\"' 7 | 8 | assemblycstmp = File.read(File.join(assemblypath, 'AssemblyInfo.cs.in')) 9 | 10 | description = "[assembly: AssemblyDescription (@\"MonkeyWrench (branch: #{branch} commit #: #{no_commits} sha: #{sha} date: #{date} subject: subject)\")]" 11 | version = "[assembly: AssemblyVersion (\"1.0.0.#{no_commits}\")]" 12 | 13 | assemblycs = assemblycstmp.gsub(/.*AssemblyDescription.*/, description).gsub(/.*AssemblyVersion.*/, version) 14 | 15 | filename = File.join(assemblypath, 'AssemblyInfo.cs') 16 | 17 | File.open(filename, 'w') {|f| f.write assemblycs } 18 | -------------------------------------------------------------------------------- /MonkeyWrench/packages.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /README: -------------------------------------------------------------------------------- 1 | See MonkeyWrench.Web.UI/doc/index.html 2 | 3 | -------------------------------------------------------------------------------- /class/lib/Npgsql.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/monkeywrench/729c85203e9bc92128b8f4acb00407b9ec81d405/class/lib/Npgsql.dll -------------------------------------------------------------------------------- /class/lib/Npgsql.dll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mono/monkeywrench/729c85203e9bc92128b8f4acb00407b9ec81d405/class/lib/Npgsql.dll.mdb -------------------------------------------------------------------------------- /scripts/build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -ex 2 | 3 | # 4 | # Script to execute builder 5 | # 6 | 7 | make build -C `dirname $0`/.. 8 | -------------------------------------------------------------------------------- /scripts/getcfgvar.pl: -------------------------------------------------------------------------------- 1 | #!/usr/bin/perl -w 2 | 3 | use XML::XPath; 4 | 5 | if (@ARGV != 1) { 6 | print STDERR "Usage: $0 query\n"; 7 | exit 1; 8 | } 9 | 10 | my $xpath; 11 | my $nodes; 12 | my $filename; 13 | my $home = $ENV {"HOME"}; 14 | 15 | if (-e "MonkeyWrench.xml") { 16 | $filename = "MonkeyWrench.xml"; 17 | } elsif (-e "$home/.config/MonkeyWrench/MonkeyWrench.xml") { 18 | $filename = "$home/.config/MonkeyWrench/MonkeyWrench.xml"; 19 | } elsif (-e "/etc/MonkeyWrench.xml") { 20 | $filename = "/etc/MonkeyWrench.xml"; 21 | } else { 22 | printf STDERR "Could not find MonkeyWrench.xml\n"; 23 | exit 1; 24 | } 25 | 26 | #print "Found configuration file: $filename \n"; 27 | 28 | $xpath = XML::XPath->new($filename); 29 | $nodes = $xpath->find (shift @ARGV); 30 | 31 | if ($nodes->size > 1) { 32 | print STDERR "More than one nodes found"; 33 | } elsif ($nodes->size) { 34 | foreach my $node ($nodes->get_nodelist) { 35 | print $node->string_value; 36 | } 37 | } else { 38 | print STDERR "No nodes found"; 39 | } 40 | 41 | print "\n"; 42 | 43 | exit; 44 | -------------------------------------------------------------------------------- /scripts/moonbuilder-clean-tmp.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -x 2 | 3 | find /tmp/AdobeFonts* -ctime +0 | xargs --verbose rm -R 4 | find /tmp/CustomFont* -ctime +0 | xargs --verbose rm -R 5 | find /tmp/customfont* -ctime +0 | xargs --verbose rm -R 6 | find /tmp/moonlight* -ctime +0 | xargs --verbose rm -R 7 | find /tmp/UifxControlsDrts* -ctime +0 | xargs --verbose rm -R 8 | find /tmp/adobefonts* -ctime +0 | xargs --verbose rm -R 9 | find /tmp/plugtmp* -ctime +1 | xargs --verbose rm -R 10 | find /tmp/test-directory-in-zip* -ctime +1 | xargs --verbose rm -R 11 | find /tmp/ObfuscatedFonts.zip* -ctime +0 | xargs --verbose rm -R 12 | find /tmp/moon-unit.xap* -ctime +0 | xargs --verbose rm -R 13 | find /tmp/foo.zip* -ctime +0 | xargs --verbose rm -R 14 | find /tmp/CustomFonts.zip* -ctime +0 | xargs --verbose rm -R 15 | find /tmp/*.xap* -ctime +0 | xargs --verbose rm -R 16 | find /tmp/47BB3D8Bd01* -ctime +0 | xargs --verbose rm -R 17 | find /tmp/EB84F87Bd01* -ctime +0 | xargs --verbose rm -R 18 | find /tmp/F5508BCBd01* -ctime +0 | xargs --verbose rm -R 19 | find /tmp/linux-temp-aspnet-0/* -ctime +1 | xargs --verbose rm -R 20 | find /tmp/orbit-linux/* -ctime +1 | xargs --verbose rm -R 21 | find /tmp/???????????.?????? -ctime +0 | xargs --verbose rm -R 22 | find /tmp/*.odttf.* -ctime +0 | xargs --verbose rm -R 23 | 24 | 25 | -------------------------------------------------------------------------------- /scripts/moonlight/setenv.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -ex 2 | 3 | if [[ "x$BUILD_HOST" == "x" ]]; then 4 | echo You must source config.sh first. 5 | exit 1 6 | fi 7 | 8 | # 9 | # This script must be sourced while pwd is the directory of a revision. 10 | # It will setup env variables mostly as the builder sees things. 11 | # 12 | # Typical usage: 13 | # > cd ~/moonbuilder/builder/scripts/ 14 | # > source config.sh 15 | # > cd ~/moonbuilder/data/lanes/moon-trunk-2.0/123456/ 16 | # > source ~/moonbuilder/builder/scripts/setenv.sh 17 | # 18 | 19 | R=`basename $PWD` 20 | 21 | if ! expr $R + 1 ; then 22 | echo Current directory has to be a revision number. 23 | else 24 | I=$PWD 25 | 26 | source ~/moonbuilder/builder/scripts/config.sh 27 | 28 | export PKG_CONFIG_PATH=$I/install/lib/pkgconfig:$PKG_CONFIG_PATH 29 | export PATH=$I/install/bin:$PATH 30 | export LD_LIBRARY_PATH=$I/install/lib:$I/install/.mozilla/plugins/moonlight:/$LD_LIBRARY_PATH 31 | export DISPLAY=:7 32 | fi 33 | 34 | -------------------------------------------------------------------------------- /scripts/postcommit-svn.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh -ex 2 | 3 | # 4 | # This script sends an xml file with a list of all the changed directories 5 | # for a particular revision to a configurable url. 6 | # 7 | # The xml file has the following format: 8 | # 9 | # 10 | # 11 | # 12 | # /dir1 13 | # /dir2 14 | # 15 | # 16 | # 17 | # 18 | # 19 | 20 | # configurable variables 21 | 22 | REPOSITORY_ROOT=mono-cvs.ximian.com/source 23 | REPORT_URL=http://sublimeintervention.com:8123/ReportCommit.aspx 24 | 25 | ## 26 | 27 | REPOS="$1" 28 | REV="$2" 29 | 30 | TMPFILE=`mktemp` 31 | 32 | # write xml start 33 | 34 | cat >$TMPFILE < 36 | 37 | 38 | EOF 39 | 40 | # write directories 41 | for directory in `svnlook dirs-changed -r $REV $REPOS`; do 42 | echo " $directory" >> $TMPFILE 43 | done 44 | 45 | # write xml end 46 | 47 | cat >>$TMPFILE < 49 | 50 | 51 | EOF 52 | 53 | curl $REPORT_URL --form xml=@$TMPFILE -m 15 54 | 55 | rm $TMPFILE 56 | 57 | # exit 1 -------------------------------------------------------------------------------- /scripts/updatemono.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -ex 2 | 3 | # 4 | # this script will checkout and build a mono/mcs for the buildbot to use (so that nothing clashes with whatever we're testing) 5 | # 6 | 7 | # to avoid weird differences between bots, we put a revision here so that all bots use the same revision 8 | REVISION=132691 9 | 10 | source `dirname $0`/config.sh 11 | 12 | B_ROOT=$BUILDER_DATA/bot-dependencies 13 | mkdir -p $B_ROOT/install 14 | mkdir -p $B_ROOT/src 15 | 16 | cd $B_ROOT/src 17 | svn co svn://anonsvn.mono-project.com/source/trunk/mono mono -r $REVISION 18 | svn co svn://anonsvn.mono-project.com/source/trunk/mcs mcs -r $REVISION 19 | 20 | cd mono 21 | ./autogen.sh --prefix=$B_ROOT/install 22 | make 23 | make install 24 | 25 | -------------------------------------------------------------------------------- /scripts/updater.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -ex 2 | 3 | # 4 | # Script to execute scheduler 5 | # 6 | 7 | make -C `dirname $0\.. updater 8 | -------------------------------------------------------------------------------- /scripts/web.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash -ex 2 | 3 | # 4 | # Script to start xsp4 on port 8123 and send all output to /tmp/xsp2.log 5 | # 6 | 7 | XSP=/Library/Frameworks/Mono.framework/Commands/xsp4 8 | if ! test -f $XSP; then 9 | XSP=xsp4 10 | fi 11 | 12 | 13 | pushd . 14 | 15 | cd `dirname $0` 16 | 17 | make -C .. all 18 | #ROOT=`readlink -f $PWD/..` 19 | ROOT=$PWD/.. 20 | 21 | export MONO_TLS_SESSION_CACHE_TIMEOUT=0 22 | export PATH=$PATH:/Library/Frameworks/Mono.framework/Commands 23 | 24 | ulimit -n 4096 25 | 26 | ( sleep 1 && curl http://localhost:8123/index.aspx >/dev/null ) & 27 | 28 | MONO_OPTIONS="--debug $MONO_OPTIONS" $XSP --port 8123 --root $ROOT --applications /WebServices:$ROOT/MonkeyWrench.Web.WebService/,/:$ROOT/MonkeyWrench.Web.UI --nonstop 29 | 30 | popd 31 | 32 | --------------------------------------------------------------------------------