Sha256: 3155a07683ac612c63bbd702947521fe4f395bf25a8b2b16afc88a6484f8c609
Contents?: true
Size: 545 Bytes
Versions: 1
Compression:
Stored size: 545 Bytes
Contents
require 'fastlane_core' require 'open3' module FastlaneCore class Clipboard def self.copy(content: nil) return UI.crash!("'pbcopy' or 'pbpaste' command not found.") unless is_supported? Open3.popen3('pbcopy') { |input, _, _| input << content } end def self.paste return UI.crash!("'pbcopy' or 'pbpaste' command not found.") unless is_supported? return `pbpaste` end def self.is_supported? return `which pbcopy`.length > 0 && `which pbpaste`.length > 0 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fastlane_hotfix-2.187.0 | fastlane_core/lib/fastlane_core/clipboard.rb |