Skip to content

Commit 3747dc1

Browse files
committed
address rubocop issues
1 parent cf21ec6 commit 3747dc1

File tree

1 file changed

+31
-31
lines changed

1 file changed

+31
-31
lines changed

bin/metrics-postgres-query.rb

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -32,51 +32,51 @@
3232

3333
class MetricsPostgresQuery < Sensu::Plugin::Metric::CLI::Graphite
3434
option :user,
35-
description: 'Postgres User',
36-
short: '-u USER',
37-
long: '--user USER'
35+
description: 'Postgres User',
36+
short: '-u USER',
37+
long: '--user USER'
3838

3939
option :password,
40-
description: 'Postgres Password',
41-
short: '-p PASS',
42-
long: '--password PASS'
40+
description: 'Postgres Password',
41+
short: '-p PASS',
42+
long: '--password PASS'
4343

4444
option :hostname,
45-
description: 'Hostname to login to',
46-
short: '-h HOST',
47-
long: '--hostname HOST',
48-
default: 'localhost'
45+
description: 'Hostname to login to',
46+
short: '-h HOST',
47+
long: '--hostname HOST',
48+
default: 'localhost'
4949

5050
option :port,
51-
description: 'Database port',
52-
short: '-P PORT',
53-
long: '--port PORT',
54-
default: 5432
51+
description: 'Database port',
52+
short: '-P PORT',
53+
long: '--port PORT',
54+
default: 5432
5555

5656
option :db,
57-
description: 'Database name',
58-
short: '-d DB',
59-
long: '--db DB',
60-
default: 'postgres'
57+
description: 'Database name',
58+
short: '-d DB',
59+
long: '--db DB',
60+
default: 'postgres'
6161

6262
option :query,
63-
description: 'Database query to execute',
64-
short: '-q QUERY',
65-
long: '--query QUERY',
66-
required: true
63+
description: 'Database query to execute',
64+
short: '-q QUERY',
65+
long: '--query QUERY',
66+
required: true
6767

6868
option :count_tuples,
69-
description: 'Count the number of tuples (rows) returned by the query',
70-
short: '-t',
71-
long: '--tuples',
72-
boolean: true,
73-
default: false
69+
description: 'Count the number of tuples (rows) returned by the query',
70+
short: '-t',
71+
long: '--tuples',
72+
boolean: true,
73+
default: false
7474

7575
option :scheme,
76-
description: 'Metric naming scheme, text to prepend to metric',
77-
short: '-s SCHEME',
78-
long: '--scheme SCHEME',
79-
default: 'postgres'
76+
description: 'Metric naming scheme, text to prepend to metric',
77+
short: '-s SCHEME',
78+
long: '--scheme SCHEME',
79+
default: 'postgres'
8080

8181
def run
8282
begin

0 commit comments

Comments
 (0)