# File lib/rudy/metadata/machine.rb, line 102 102: def get_console 103: raise "Instance not running" unless instance_running? 104: raw = Rudy::AWS::EC2::Instances.console @instid 105: console = Base64.decode64(raw) 106: # The linux console can include ANSI escape codes for color, 107: # clear screen etc... We strip them out to get rid of the 108: # clear specifically. Otherwise the display is messed! 109: console &&= console.noansi if console.respond_to? :noansi 110: console 111: end