Class: Xcov::Manager

Inherits:
Object
  • Object
show all
Defined in:
lib/xcov/manager.rb

Instance Method Summary collapse

Instance Method Details

#work(options) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/xcov/manager.rb', line 6

def work(options)
  # Set command options
  Xcov.config = options

  # Set project options
  FastlaneCore::Project.detect_projects(options)
  Xcov.project = FastlaneCore::Project.new(options)

  # Set ignored files handler
  Xcov.ignore_handler = IgnoreHandler.new

  # Print summary
  FastlaneCore::PrintTable.print_values(config: options, hide_keys: [:slack_url], title: "Summary for xcov #{Xcov::VERSION}")

  # Run xcov
  Runner.new.run
end