Module: RgVersion::Terminal
- Defined in:
- lib/rgversion/terminal.rb
Overview
Terminal operations
Class Method Summary collapse
Class Method Details
.copy_to_clipboard ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/rgversion/terminal.rb', line 4 def self.copy_to_clipboard version = RgVersion::Spider.grab_version unless version.empty? version = version.join("\n") `echo "#{version}" | pbcopy` puts "#{version}\n\nCopied to your clipboard!" end end |