Created
September 16, 2015 08:05
-
-
Save anonymous/8d9f7a13be0bfaef9f10 to your computer and use it in GitHub Desktop.
with out variable
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ... | |
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