push
travis-ci
8 of 8 new or added lines in 3 files covered. (100.0%)
3579 of 10307 relevant lines covered (34.72%)
2.78 hits per line
1 |
require "y2remote/modes/base"
|
1✔ |
2 |
require "y2remote/modes/socket_based"
|
1✔ |
3 |
|
|
4 |
module Y2Remote |
1✔ |
5 |
module Modes |
1✔ |
6 |
class VNC < Base |
1✔ |
7 |
include SocketBased
|
1✔ |
8 |
|
|
9 |
SOCKET = "xvnc".freeze |
1✔ |
10 |
|
|
11 |
def initialize |
1✔ |
12 |
super()
|
1✔ |
13 |
Yast.import "Packages" |
1✔ |
14 |
end
|
|
15 |
|
|
16 |
def required_packages |
1✔ |
17 |
Yast::Packages.vnc_packages |
× |
18 |
end
|
|
19 |
|
|
20 |
def socket_name |
1✔ |
21 |
SOCKET
|
2✔ |
22 |
end
|
|
23 |
|
|
|
def service_name |
1✔ |
|
"#{socket_name}@*"
|
× |
26 |
end
|
|
27 |
end
|
|
28 |
end
|
|
29 |
end
|