Sha256: e021cb4d3bb40056d23e3da374ef3bd6e34e9fbce0ccdf6b768dc921234dc5e8

Contents?: true

Size: 322 Bytes

Versions: 2

Compression:

Stored size: 322 Bytes

Contents

module RgVersion
  # Terminal operations
  module Terminal
    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
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rgversion-0.0.2 lib/rgversion/terminal.rb
rgversion-0.0.1 lib/rgversion/terminal.rb