Module: Console::Expectancies
- Included in:
- Conversation
- Defined in:
- lib/console/expectancies.rb
Instance Method Summary collapse
- #connected ⇒ Object
- #logged_in ⇒ Object
- #logout ⇒ Object
- #post_uname ⇒ Object
- #waiting_shell ⇒ Object
Instance Method Details
#connected ⇒ Object
3 4 5 6 7 8 |
# File 'lib/console/expectancies.rb', line 3 def connected res = "Connected to domain puppet-client\\r\nEscape character is ^]\\r\n E\nend\n" |
#logged_in ⇒ Object
17 18 19 20 21 22 23 24 |
# File 'lib/console/expectancies.rb', line 17 def logged_in res = "Welcome to Ubuntu 11.04 (GNU/Linux 2.6.38-8-virtual x86_64)\\r\n\n * Documentation: https://help.ubuntu.com/\\r\nronen@puppet-client:~$ \n E\nend\n" |
#logout ⇒ Object
26 27 28 29 30 31 32 33 34 |
# File 'lib/console/expectancies.rb', line 26 def logout res = "logout\\r\n\\r\nUbuntu 11.04 puppet-client ttyS0\\r\n\\r\npuppet-client login: \n E\nend\n" |
#post_uname ⇒ Object
10 11 12 13 14 15 |
# File 'lib/console/expectancies.rb', line 10 def post_uname res = "ronen\nPassword: \n" end |
#waiting_shell ⇒ Object
36 37 38 |
# File 'lib/console/expectancies.rb', line 36 def waiting_shell "\r\nronen@puppet-client:~$ " end |