Module: Console::Expectancies

Included in:
Conversation
Defined in:
lib/console/expectancies.rb

Instance Method Summary collapse

Instance Method Details

#connectedObject



3
4
5
6
7
8
# File 'lib/console/expectancies.rb', line 3

def connected 
		res = <<-E
Connected to domain puppet-client\r
Escape character is ^]\r
		E
end

#logged_inObject



17
18
19
20
21
22
23
24
# File 'lib/console/expectancies.rb', line 17

def logged_in
		res = <<-E
Welcome to Ubuntu 11.04 (GNU/Linux 2.6.38-8-virtual x86_64)\r

 * Documentation:  https://help.ubuntu.com/\r
ronen@puppet-client:~$ 
		E
end

#logoutObject



26
27
28
29
30
31
32
33
34
# File 'lib/console/expectancies.rb', line 26

def	logout
		res = <<-E
logout\r
\r
Ubuntu 11.04 puppet-client ttyS0\r
\r
puppet-client login: 
		E
end

#post_unameObject



10
11
12
13
14
15
# File 'lib/console/expectancies.rb', line 10

def post_uname
		res =  <<-E
ronen
Password: 
E
end

#waiting_shellObject



36
37
38
# File 'lib/console/expectancies.rb', line 36

def waiting_shell
         "\r\nronen@puppet-client:~$ "
end