Class: CopyTunerIncompatibleSearch::SearchCommand

Inherits:
Object
  • Object
show all
Defined in:
lib/copy_tuner_incompatible_search/search_command.rb

Defined Under Namespace

Classes: Result, Usage

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.run(output_path) ⇒ Object



8
9
10
# File 'lib/copy_tuner_incompatible_search/search_command.rb', line 8

def self.run(output_path)
  self.new.run(output_path)
end

Instance Method Details

#run(output_path) ⇒ Object



12
13
14
15
16
17
18
19
20
21
# File 'lib/copy_tuner_incompatible_search/search_command.rb', line 12

def run(output_path)
  puts 'Start'
  incompatible_keys = search_incompatible_keys
  results = search_static_usages(incompatible_keys)
  results << search_lazy_usages
  results << search_dynamic_usages
  ignored_keys = search_ignored_keys
  XlsxWriter.new(results, incompatible_keys, ignored_keys).save_to(output_path)
  puts 'Finish'
end