Sha256: e334f6a4d1c4a78e232e180d3c8ef7990f8ac1092bbaf5356f2a7ed4f453be55
Contents?: true
Size: 454 Bytes
Versions: 15
Compression:
Stored size: 454 Bytes
Contents
module Landrush module Cap module Linux module ConfiguredDnsServer def self.configured_dns_server(machine) return @dns_server if @dns_server machine.communicate.sudo('cat /etc/resolv.conf | grep ^nameserver') do |type, data| if type == :stdout @dns_server = data.scan(/\d+\.\d+\.\d+\.\d+/).first end end @dns_server end end end end end
Version data entries
15 entries across 15 versions & 1 rubygems