Server IP : 66.29.132.122 / Your IP : 3.145.202.61 Web Server : LiteSpeed System : Linux business142.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : admazpex ( 531) PHP Version : 7.2.34 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/self/root/opt/puppetlabs/puppet/lib/ruby/vendor_gems/gems/highline-2.1.0/lib/highline/ |
Upload File : |
# coding: utf-8 require "stringio" require "tempfile" # # On tests, we try to simulate input output with # StringIO, Tempfile and File objects. # # For this to be accomplished, we have to do some # tweaking so that they respond adequately to the # called methods during tests. # module IOConsoleCompatible def getch getc end attr_accessor :echo def winsize [24, 80] end end class Tempfile include IOConsoleCompatible end class File include IOConsoleCompatible end class StringIO include IOConsoleCompatible end