From 08625ece9d9dacf3b37d6bad834c372cd1f3e562 Mon Sep 17 00:00:00 2001 From: Gabriel Omar Cotelli Date: Thu, 30 Jan 2020 11:41:11 -0300 Subject: [PATCH] Fixed categories of some methods. Push-up printOn: on `OperationPlugin` hierarchy --- .../ApplicationInfoPlugin.class.st | 6 ------ .../Stargate-HealthCheck/HealthCheckPlugin.class.st | 6 ------ source/Stargate-Metrics/MetricsPlugin.class.st | 10 ++-------- source/Stargate-Model/OperationalPlugin.class.st | 12 +++++++++--- 4 files changed, 11 insertions(+), 23 deletions(-) diff --git a/source/Stargate-Application-Info/ApplicationInfoPlugin.class.st b/source/Stargate-Application-Info/ApplicationInfoPlugin.class.st index efa9739..825fda5 100644 --- a/source/Stargate-Application-Info/ApplicationInfoPlugin.class.st +++ b/source/Stargate-Application-Info/ApplicationInfoPlugin.class.st @@ -75,9 +75,3 @@ ApplicationInfoPlugin >> initializeGatheringAll: enabledInformationProviderNames select: [ :provider | enabledInformationProviderNames includes: provider providerName ] thenCollect: [ :providerClass | providerClass new ] ] - -{ #category : #printing } -ApplicationInfoPlugin >> printOn: stream [ - - stream nextPutAll: self name -] diff --git a/source/Stargate-HealthCheck/HealthCheckPlugin.class.st b/source/Stargate-HealthCheck/HealthCheckPlugin.class.st index 0f110e9..712fd50 100644 --- a/source/Stargate-HealthCheck/HealthCheckPlugin.class.st +++ b/source/Stargate-HealthCheck/HealthCheckPlugin.class.st @@ -74,12 +74,6 @@ HealthCheckPlugin >> initializeRunningAll: aHealthCheckCollection [ healthChecks := aHealthCheckCollection ] -{ #category : #printing } -HealthCheckPlugin >> printOn: stream [ - - stream nextPutAll: self name -] - { #category : #actions } HealthCheckPlugin >> runHealthChecks [ diff --git a/source/Stargate-Metrics/MetricsPlugin.class.st b/source/Stargate-Metrics/MetricsPlugin.class.st index fe36a39..f7d5365 100644 --- a/source/Stargate-Metrics/MetricsPlugin.class.st +++ b/source/Stargate-Metrics/MetricsPlugin.class.st @@ -68,19 +68,13 @@ MetricsPlugin >> initializeGatheringAll: enabledMetricNames [ thenCollect: [ :providerClass | providerClass new ] ] -{ #category : #printing } -MetricsPlugin >> printOn: stream [ - - stream nextPutAll: self name -] - -{ #category : #initialize } +{ #category : #controlling } MetricsPlugin >> startOn: teapotServer [ metricProviders do: [ :provider | provider installOn: teapotServer ] ] -{ #category : #initialize } +{ #category : #controlling } MetricsPlugin >> stop [ metricProviders do: #uninstall diff --git a/source/Stargate-Model/OperationalPlugin.class.st b/source/Stargate-Model/OperationalPlugin.class.st index 0890264..9145910 100644 --- a/source/Stargate-Model/OperationalPlugin.class.st +++ b/source/Stargate-Model/OperationalPlugin.class.st @@ -82,13 +82,19 @@ OperationalPlugin >> includeControllersIn: api [ self subclassResponsibility ] -{ #category : #acccessing } +{ #category : #accessing } OperationalPlugin >> name [ ^ self class pluginName ] -{ #category : #accessing } +{ #category : #printing } +OperationalPlugin >> printOn: stream [ + + stream nextPutAll: self name +] + +{ #category : #controlling } OperationalPlugin >> startOn: teapotServer [ "This method is called when the server is started, giving @@ -97,7 +103,7 @@ OperationalPlugin >> startOn: teapotServer [ ] -{ #category : #accessing } +{ #category : #controlling } OperationalPlugin >> stop [ "This method is called when the server is stopped, giving