lib/specinfra/command/base.rb in specinfra-0.8.0 vs lib/specinfra/command/base.rb in specinfra-1.0.0
- old
+ new
@@ -319,8 +319,12 @@
end
def get_package_version(package, opts=nil)
raise NotImplementedError.new
end
+
+ def get_ipaddress_of_host(name)
+ "getent hosts #{escape(name)} | awk '{print $1}'"
+ end
end
end
end