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, #cursor, #editor, #pastel, #prompt, #spinner, #verify_config_exists

Methods included from Utils::Helpers

logger

Constructor Details

#initialize(options) ⇒ FastQuarantine

Returns a new instance of FastQuarantine.



7
8
9
# File 'lib/dri/commands/view/fast_quarantine.rb', line 7

def initialize(options)
  @options = options
end

Instance Method Details

#executeObject



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

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