jenkins-bot has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/396646 )

Change subject: Rename maintenance scripts to match file name
......................................................................


Rename maintenance scripts to match file name

Change-Id: Ic3a29665d45ae43a1277261efc560d9fc3bc54f3
---
M .phpcs.xml
M maintenance/onInstanceActionCompletion.php
M maintenance/purgeOldServiceGroups.php
M maintenance/qualifyInstancePages.php
M maintenance/syncProjectGroups.php
M maintenance/transitionServiceGroupSchema.php
M maintenance/updateProjectPages.php
7 files changed, 15 insertions(+), 14 deletions(-)

Approvals:
  Legoktm: Looks good to me, approved
  jenkins-bot: Verified
  Thiemo Kreuz (WMDE): Looks good to me, but someone else must approve



diff --git a/.phpcs.xml b/.phpcs.xml
index 57e2e89..1fdf6d1 100644
--- a/.phpcs.xml
+++ b/.phpcs.xml
@@ -4,12 +4,13 @@
                <exclude 
name="MediaWiki.Commenting.FunctionComment.MissingDocumentationProtected" />
                <exclude 
name="MediaWiki.Commenting.FunctionComment.MissingDocumentationPublic" />
                <exclude 
name="MediaWiki.Commenting.FunctionComment.MissingParamComment" />
-               <exclude name="MediaWiki.Files.ClassMatchesFilename.NotMatch" />
-               <exclude name="MediaWiki.Files.ClassMatchesFilename.WrongCase" 
/>
                <exclude name="PSR2.Methods.MethodDeclaration.Underscore"/>
                <exclude 
name="MediaWiki.NamingConventions.LowerCamelFunctionsName.FunctionName"/>
                <exclude 
name="MediaWiki.WhiteSpace.SpaceBeforeSingleLineComment.NewLineComment"/>
        </rule>
+       <rule ref="MediaWiki.Files.ClassMatchesFilename.WrongCase">
+               <exclude-pattern>*/maintenance/*</exclude-pattern>
+       </rule>
        <file>.</file>
        <arg name="extensions" value="php,php5,inc"/>
        <arg name="encoding" value="UTF-8"/>
diff --git a/maintenance/onInstanceActionCompletion.php 
b/maintenance/onInstanceActionCompletion.php
index ff92c2f..d3e4903 100644
--- a/maintenance/onInstanceActionCompletion.php
+++ b/maintenance/onInstanceActionCompletion.php
@@ -36,7 +36,7 @@
  *
  * @ingroup Maintenance
  */
-class OnInstanceActionComplete extends Maintenance {
+class OnInstanceActionCompletion extends Maintenance {
        public function __construct() {
                parent::__construct();
                $this->addOption( 'action',
@@ -110,5 +110,5 @@
        }
 }
 
-$maintClass = "OnInstanceActionComplete";
+$maintClass = "OnInstanceActionCompletion";
 require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/purgeOldServiceGroups.php 
b/maintenance/purgeOldServiceGroups.php
index 7683880..7292163 100644
--- a/maintenance/purgeOldServiceGroups.php
+++ b/maintenance/purgeOldServiceGroups.php
@@ -6,7 +6,7 @@
 }
 require_once "$IP/maintenance/Maintenance.php";
 
-class OpenStackNovaPurgeOldServiceGroups extends Maintenance {
+class PurgeOldServiceGroups extends Maintenance {
        public function __construct() {
                parent::__construct();
                $this->mDescription = "Delete all service users and groups of 
the form " .
@@ -125,5 +125,5 @@
        }
 }
 
-$maintClass = "OpenStackNovaPurgeOldServiceGroups";
+$maintClass = "PurgeOldServiceGroups";
 require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/qualifyInstancePages.php 
b/maintenance/qualifyInstancePages.php
index 05cd5ad..575a8f0 100644
--- a/maintenance/qualifyInstancePages.php
+++ b/maintenance/qualifyInstancePages.php
@@ -6,7 +6,7 @@
 }
 require_once "$IP/maintenance/Maintenance.php";
 
-class OpenStackNovaQualifyInstancePages extends Maintenance {
+class QualifyInstancePages extends Maintenance {
        public function __construct() {
                parent::__construct();
                $this->mDescription = "Move instance pages from id to fqdn.";
@@ -62,5 +62,5 @@
 
 }
 
-$maintClass = "OpenStackNovaQualifyInstancePages";
+$maintClass = "QualifyInstancePages";
 require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/syncProjectGroups.php 
b/maintenance/syncProjectGroups.php
index 6174e4b..0dc7379 100644
--- a/maintenance/syncProjectGroups.php
+++ b/maintenance/syncProjectGroups.php
@@ -6,7 +6,7 @@
 }
 require_once "$IP/maintenance/Maintenance.php";
 
-class OpenStackNovaSyncProjectGroups extends Maintenance {
+class SyncProjectGroups extends Maintenance {
        public function __construct() {
                parent::__construct();
                $this->mDescription = "Sync each cn=<project-name>,ou=projects 
members to " .
@@ -69,5 +69,5 @@
 
 }
 
-$maintClass = "OpenStackNovaSyncProjectGroups";
+$maintClass = "SyncProjectGroups";
 require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/transitionServiceGroupSchema.php 
b/maintenance/transitionServiceGroupSchema.php
index 17f430d..ce89528 100644
--- a/maintenance/transitionServiceGroupSchema.php
+++ b/maintenance/transitionServiceGroupSchema.php
@@ -6,7 +6,7 @@
 }
 require_once "$IP/maintenance/Maintenance.php";
 
-class OpenStackNovaTransitionServiceGroups extends Maintenance {
+class TransitionServiceGroupSchema extends Maintenance {
        public function __construct() {
                parent::__construct();
                $this->mDescription = "Copy each 
cn=local-<servicegroup>,ou=groups,cn=<project>," .
@@ -100,5 +100,5 @@
 
 }
 
-$maintClass = "OpenStackNovaTransitionServiceGroups";
+$maintClass = "TransitionServiceGroupSchema";
 require_once RUN_MAINTENANCE_IF_MAIN;
diff --git a/maintenance/updateProjectPages.php 
b/maintenance/updateProjectPages.php
index d25784b..35e683d 100644
--- a/maintenance/updateProjectPages.php
+++ b/maintenance/updateProjectPages.php
@@ -6,7 +6,7 @@
 }
 require_once "$IP/maintenance/Maintenance.php";
 
-class OpenStackNovaUpdateProjectPages extends Maintenance {
+class UpdateProjectPages extends Maintenance {
        public function __construct() {
                parent::__construct();
                $this->mDescription = "Update all project pages in the wiki";
@@ -26,5 +26,5 @@
 
 }
 
-$maintClass = "OpenStackNovaUpdateProjectPages";
+$maintClass = "UpdateProjectPages";
 require_once RUN_MAINTENANCE_IF_MAIN;

-- 
To view, visit https://gerrit.wikimedia.org/r/396646
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ic3a29665d45ae43a1277261efc560d9fc3bc54f3
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/OpenStackManager
Gerrit-Branch: master
Gerrit-Owner: Umherirrender <[email protected]>
Gerrit-Reviewer: Legoktm <[email protected]>
Gerrit-Reviewer: Thiemo Kreuz (WMDE) <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to