lib/rgversion/terminal.rb in rgversion-0.0.2 vs lib/rgversion/terminal.rb in rgversion-0.1.0

- old
+ new

@@ -1,9 +1,10 @@ -module RgVersion +module Rgversion # Terminal operations module Terminal def self.copy_to_clipboard - version = RgVersion::Spider.grab_version + spider = RgVersion::Spider.new(ARGV) + version = spider.output unless version.empty? version = version.join("\n") `echo "#{version}" | pbcopy` puts "#{version}\n\nCopied to your clipboard!" end