??????????????
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 173
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 174
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 175
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 176
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 177
Warning: Cannot modify header information - headers already sent by (output started at /home/mybf1/public_html/mentol.bf1.my/SS1.php:4) in /home/mybf1/public_html/mentol.bf1.my/SS1.php on line 178
๓
เUdac @` s d d l m Z m Z m Z e Z d d l Z d d l m Z m Z d d l
m Z d d l m
Z
d e
e e f d YZ d S( i ( t absolute_importt divisiont print_functionN( t ABCMetat abstractmethod( t AnsibleConnectionFailure( t with_metaclasst TerminalBasec B` sฐ e Z d Z g Z g Z e j d e j d e j d g Z d
Z d
Z
e Z d Z
e d Z d Z d Z d Z d
d Z d
Z d
d Z d Z RS( s๋
A base class for implementing cli connections
.. note:: Unlike most of Ansible, nearly all strings in
:class:`TerminalBase` plugins are byte strings. This is because of
how close to the underlying platform these plugins operate. Remember
to mark literal strings as byte string (``b"string"``) and to use
:func:`~ansible.module_utils._text.to_bytes` and
:func:`~ansible.module_utils._text.to_text` to avoid unexpected
problems.
s \x1b\[\?1h\x1b=s \x08.s \x1b\[mc C` s
| | _ d S( N( t _connection( t selft
connection( ( sE /usr/lib/python2.7/site-packages/ansible/plugins/terminal/__init__.pyt __init__A s c C` s | j j | S( s
Executes the CLI command on the remote device and returns the output
:arg cmd: Byte string command to be executed
( R t exec_command( R t cmdt check_rc( ( sE /usr/lib/python2.7/site-packages/ansible/plugins/terminal/__init__.pyt _exec_cli_commandD s c C` s
| j j S( sk
Returns the current prompt from the device
:returns: A byte string of the prompt
( R t
get_prompt( R ( ( sE /usr/lib/python2.7/site-packages/ansible/plugins/terminal/__init__.pyt _get_promptL s c C` s d S( s Called after the SSH session is established
This method is called right after the invoke_shell() is called from
the Paramiko SSHClient instance. It provides an opportunity to setup
terminal parameters such as disbling paging for instance.
N( ( R ( ( sE /usr/lib/python2.7/site-packages/ansible/plugins/terminal/__init__.pyt
on_open_shellT s c C` s d S( s& Called before the connection is closed
This method gets called once the connection close has been requested
but before the connection is actually closed. It provides an
opportunity to clean up any terminal resources before the shell is
actually closed
N( ( R ( ( sE /usr/lib/python2.7/site-packages/ansible/plugins/terminal/__init__.pyt on_close_shell] s c C` s d S( s Called when privilege escalation is requested
:kwarg passwd: String containing the password
This method is called when the privilege is requested to be elevated
in the play context by setting become to True. It is the responsibility
of the terminal plugin to actually do the privilege escalation such
as entering `enable` mode for instance
N( ( R t passwd( ( sE /usr/lib/python2.7/site-packages/ansible/plugins/terminal/__init__.pyt on_becomeg s
c C` s d S( s Called when privilege deescalation is requested
This method is called when the privilege changed from escalated
(become=True) to non escalated (become=False). It is the responsibility
of this method to actually perform the deauthorization procedure
N( ( R ( ( sE /usr/lib/python2.7/site-packages/ansible/plugins/terminal/__init__.pyt on_unbecomes s c C` s
| j | S( sj Deprecated method for privilege escalation
:kwarg passwd: String containing the password
( R ( R R ( ( sE /usr/lib/python2.7/site-packages/ansible/plugins/terminal/__init__.pyt on_authorize| s c C` s
| j S( s5 Deprecated method for privilege deescalation
( R ( R ( ( sE /usr/lib/python2.7/site-packages/ansible/plugins/terminal/__init__.pyt on_deauthorize s N( t __name__t
__module__t __doc__t terminal_stdout_ret terminal_stderr_ret ret compilet ansi_ret Nonet terminal_initial_promptt terminal_initial_answert Truet terminal_inital_prompt_newlineR R R R R R R R R ( ( ( sE /usr/lib/python2.7/site-packages/ansible/plugins/terminal/__init__.pyR s$
( t
__future__R R R t typet
__metaclass__R t abcR R t ansible.errorsR t ansible.module_utils.sixR t objectR ( ( ( sE /usr/lib/python2.7/site-packages/ansible/plugins/terminal/__init__.pyt s