Class: BranchIOCLI::Helper::ReportHelper

Inherits:
Object
  • Object
show all
Defined in:
lib/branch_io_cli/helper/report_helper.rb

Class Method Summary collapse

Class Method Details

.configObject



17
18
19
# File 'lib/branch_io_cli/helper/report_helper.rb', line 17

def config
  Configuration::Configuration.current
end

.report_importsObject



7
8
9
10
11
12
13
14
15
# File 'lib/branch_io_cli/helper/report_helper.rb', line 7

def report_imports
  report = "Branch imports:\n"
  config.branch_imports.each_key do |path|
    report += " #{config.relative_path path}:\n"
    report += "  #{config.branch_imports[path].join("\n  ")}"
    report += "\n"
  end
  report
end