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, #cursor, #editor, #pastel, #prompt, #spinner, #verify_config_exists
Methods included from Utils::Helpers
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 = end |
Instance Method Details
#execute ⇒ Object
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 |