Method: Fastlane::EnvironmentPrinter.output

Defined in:
fastlane/lib/fastlane/environment_printer.rb

.outputObject



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'fastlane/lib/fastlane/environment_printer.rb', line 3

def self.output
  env_info = get

  # Remove sensitive option values
  FastlaneCore::Configuration.sensitive_strings.compact.each do |sensitive_element|
    env_info.gsub!(sensitive_element, "#########")
  end

  puts(env_info)
  UI.important("Take notice that this output may contain sensitive information, or simply information that you don't want to make public.")
  if FastlaneCore::Helper.mac? && UI.interactive? && UI.confirm("🙄  Wow, that's a lot of markdown text... should fastlane put it into your clipboard, so you can easily paste it on GitHub?")
    copy_to_clipboard(env_info)
    UI.success("Successfully copied markdown into your clipboard 🎨")
  end
  UI.success("Open https://github.com/fastlane/fastlane/issues/new to submit a new issue ✅")
end