Class: Dri::Commands::View::FastQuarantine

Inherits:
Dri::Command show all
Defined in:
lib/dri/commands/view/fast_quarantine.rb

Instance Method Summary collapse

Methods inherited from Dri::Command

#add_color, #api_client, #bold, #command, #config, #cursor, #editor, #emoji, #handover_report_path, #logger, #ops_token, #pastel, #profile, #prompt, #spinner, #timezone, #token, #username, #verify_config_exists

Constructor Details

#initialize(options) ⇒ FastQuarantine

Returns a new instance of FastQuarantine.



9
10
11
# File 'lib/dri/commands/view/fast_quarantine.rb', line 9

def initialize(options)
  @options = options
end

Instance Method Details

#executeObject



13
14
15
16
17
18
19
20
21
22
23
# File 'lib/dri/commands/view/fast_quarantine.rb', line 13

def execute(*)
  verify_config_exists

  logger.info "Fetching fast quarantined tests..."

  file_content = api_client.get_fast_quarantine_tests

  file_content.each_line do |line|
    puts "#{line}"
  end
end