# File lib/rudy/metadata/machine.rb, line 113
113:     def get_password
114:       unless windows?
115:         raise "Password support is Windows only (this is #{@os})" 
116:       end
117:       console = get_console
118:       
119:       raise "Console output not yet available. Please wait." if console.nil?
120:       
121:       unless console.match(/<Password>(.+)<\/Password>/m)  
122:         # /m, match multiple lines
123:         raise "Password not yet available. Is this a custom AMI?"
124:       end  
125:       
126:       encrtypted_text = ($1 || '').strip
127:       k = Rye::Key.from_file root_keypairpath
128:       k.decrypt encrtypted_text
129:     end