Class: Dri::Commands::View::FastQuarantine
- Inherits:
-
Dri::Command
- Object
- Dri::Command
- Dri::Commands::View::FastQuarantine
- Defined in:
- lib/dri/commands/view/fast_quarantine.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(options) ⇒ FastQuarantine
constructor
A new instance of FastQuarantine.
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 = end |
Instance Method Details
#execute ⇒ Object
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 |