lib/rgversion/clipboard.rb in rgversion-1.1.7.beta1 vs lib/rgversion/clipboard.rb in rgversion-1.1.7.beta2

- old
+ new

@@ -1,13 +1,14 @@ module Rgversion class Clipboard - def initialize(command) + def initialize(content, command) + @content = content @command = command end def copy if command_exists? - system("echo \"#{@output}\" | #{clarified_command}") + system("echo \"#{@content}\" | #{clarified_command}") puts "\nCopied to your clipboard!".green else instruction = Instruction.new(@command) instruction.render end