dri 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/dri/api_client.rb +1 -1
- data/lib/dri/commands/fetch/pipelines.rb +8 -2
- data/lib/dri/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 990d9ed4c79b5b7c7ff2e5535dba71599a3189d4c742b918f98d3063a6e15c9f
|
4
|
+
data.tar.gz: 15e48f44496a55d5d13185409a91d9ddd525d127fd8dbe73265dc176c6d14634
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 22a9838a3821c90cb24346f6f98b6158e2a71ec9bd0c4e7b5d9e447a75b676202be1d365e1603d7d12a8441f6b5d448f26337c33163b60f346819933da24fea3
|
7
|
+
data.tar.gz: 6b117a44436b2c4c064c3b19b22deb454a42c8d6d460492af7813e72299600d50ad2cef612e5e1f2a84566588f560d31c82da3c5c92b35f1d8749ea445e9664e
|
data/Gemfile.lock
CHANGED
data/lib/dri/api_client.rb
CHANGED
@@ -21,7 +21,7 @@ module Dri
|
|
21
21
|
@ops_token = config.read.dig("settings", "ops_token")
|
22
22
|
if @token.nil? || @ops_token.nil?
|
23
23
|
raise TokenNotProvidedError, "Gitlab API client cannot be initialized without both access tokens. " \
|
24
|
-
"Run dri init again or dri profile --edit"
|
24
|
+
"Run `dri init` again or `dri profile --edit` to add an ops_token entry."
|
25
25
|
end
|
26
26
|
|
27
27
|
@ops_instance = ops
|
@@ -22,6 +22,7 @@ module Dri
|
|
22
22
|
def execute(input: $stdin, output: $stdout)
|
23
23
|
verify_config_exists
|
24
24
|
logger.info "Fetching pipelines' status, this might take a while..."
|
25
|
+
logger.warn "This command needs a large window to correctly print the table"
|
25
26
|
pipelines = []
|
26
27
|
table_labels = define_table_labels
|
27
28
|
|
@@ -29,11 +30,16 @@ module Dri
|
|
29
30
|
Dri::Utils::Constants::PIPELINE_ENVIRONMENTS.each do |environment, details|
|
30
31
|
logger.info "Fetching last executed #{environment} pipeline"
|
31
32
|
pipelines << fetch_pipeline(pipeline_name: environment.to_s, details: details)
|
32
|
-
logger.info "Fetching complete for #{environment}"
|
33
|
+
logger.info "Fetching complete for #{environment} ✓"
|
33
34
|
end
|
34
35
|
end
|
35
36
|
|
36
|
-
print_table(
|
37
|
+
print_table(
|
38
|
+
table_labels,
|
39
|
+
pipelines,
|
40
|
+
alignments: [:center, :center, :center, :center, :center],
|
41
|
+
padding: [1, 1, 1, 1]
|
42
|
+
)
|
37
43
|
pipelines # Returning the array mainly for spec
|
38
44
|
end
|
39
45
|
|
data/lib/dri/version.rb
CHANGED