Method: Fastlane::EnvironmentPrinter.copy_to_clipboard

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

.copy_to_clipboard(string) ⇒ Object

Copy a given string into the clipboard Make sure to ask the user first, as some people don’t use a clipboard manager, so they might lose something important



293
294
295
296
# File 'fastlane/lib/fastlane/environment_printer.rb', line 293

def self.copy_to_clipboard(string)
  require 'open3'
  Open3.popen3('pbcopy') { |input, _, _| input << string }
end