randywallace / zabbix-cloudwatch

An external script for getting cloudwatch metrics into Zabbix
MIT License
27 stars 11 forks source link

Remove usage of class variables #3

Closed vanch closed 8 years ago

vanch commented 9 years ago

Hello. I'm getting this warnings and they're hinder me to use script in Zabbix, cause messages

/usr/local/share/ruby/gems/2.0/gems/zabbix-cloudwatch-0.1.0/bin/zabbix-cloudwatch:12: warning: class variable access from toplevel
/usr/local/share/ruby/gems/2.0/gems/zabbix-cloudwatch-0.1.0/bin/zabbix-cloudwatch:13: warning: class variable access from toplevel
/usr/local/share/ruby/gems/2.0/gems/zabbix-cloudwatch-0.1.0/bin/zabbix-cloudwatch:14: warning: class variable access from toplevel

are pushing to script value. I think it doesn't requiredto use class variables naming outside of class. It's just variables.