Skip to content

Instantly share code, notes, and snippets.

Created September 16, 2015 08:05
Show Gist options
  • Save anonymous/8d9f7a13be0bfaef9f10 to your computer and use it in GitHub Desktop.
Save anonymous/8d9f7a13be0bfaef9f10 to your computer and use it in GitHub Desktop.
with out variable
# ...
def read_config_file
puts 'file exists' if File.exists?('/usr/local/etc/zabbix_sync.conf')
if File.exists?(config_file_name)
binding.pry
config_file = YAML.load(File.read config_file_name)
else
end
if @config_file['blacklist'].class == Array
blacklist = @config_file['blacklist']
end
end
# ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment