class Object
Public Instance Methods
get_host(filename="~/.edgerc", section="default")
click to toggle source
# File lib/akamai/edgegrid.rb, line 32 def get_host(filename="~/.edgerc", section="default") edgerc_path = File.expand_path(filename) file = IniFile.load(edgerc_path) data = file[section] address = data["host"] || "" address.gsub!('/','') return address end