lib/dri/commands/fetch/pipelines.rb in dri-0.6.0 vs lib/dri/commands/fetch/pipelines.rb in dri-0.6.1
- old
+ new
@@ -20,21 +20,27 @@
end
def execute(input: $stdin, output: $stdout)
verify_config_exists
logger.info "Fetching pipelines' status, this might take a while..."
+ logger.warn "This command needs a large window to correctly print the table"
pipelines = []
table_labels = define_table_labels
spinner.run do
Dri::Utils::Constants::PIPELINE_ENVIRONMENTS.each do |environment, details|
logger.info "Fetching last executed #{environment} pipeline"
pipelines << fetch_pipeline(pipeline_name: environment.to_s, details: details)
- logger.info "Fetching complete for #{environment}"
+ logger.info "Fetching complete for #{environment} ✓"
end
end
- print_table(table_labels, pipelines, alignments: [:left, :center, :center, :left])
+ print_table(
+ table_labels,
+ pipelines,
+ alignments: [:center, :center, :center, :center, :center],
+ padding: [1, 1, 1, 1]
+ )
pipelines # Returning the array mainly for spec
end
private