Sha256: b15cf3147aa4354d2196cb5a3e24a2b9cceb8d4217e7fb771616fc3f53c9d395
Contents?: true
Size: 745 Bytes
Versions: 5
Compression:
Stored size: 745 Bytes
Contents
module RemoteUnix # common utilities which test cases can utilize class PostfixInfo include Common def initialize(ssh_session) @ssh = ssh_session set_platform end def installed? nav_path = [ {:execute => "dpkg --get-selections | grep postfix | grep -cv deinstall", :timeout => 12}, ] begin out = RemoteUnix::GenericShellOutput.to_lines(@ssh.navigate(nav_path), nav_path.first[:execute]).to_s if out == '0' return false else return true end # TODO: need to handle Net::SSH connection ex rescue => e puts "IGNORE: #{e}" end end end end
Version data entries
5 entries across 5 versions & 1 rubygems