lib/dri/commands/fetch/pipelines.rb in dri-0.7.0 vs lib/dri/commands/fetch/pipelines.rb in dri-0.8.0
- old
+ new
@@ -8,10 +8,11 @@
module Dri
module Commands
class Fetch
class Pipelines < Dri::Command # rubocop:disable Metrics/ClassLength
include Dri::Utils::Table
+ include Dri::Utils::Constants
using Refinements
NUM_OF_TESTS_LIVE_ENV = 1000
NOT_FOUND = "Not found"
@@ -25,10 +26,10 @@
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|
+ 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} ✓"
end
end