I'm new to ruby/programming trying to create multiple methods. If I remove methods this scripts work. I'm getting "aws_snapshot.rb:27:in `snapshot_description': undefined local variable or method `resp' for main:Object (NameError)"
hanmac: this is the error "`snapshot_list': wrong number of arguments (0 for 1) (ArgumentError)
can someone please tell me how I can fix this error `snapshot_list': undefined local variable or method `n' for #<Snapshot:0x007ffeebb5cc68> (NameError) https://gist.github.com/anonymous/a02ff5677b7f5aeb76c5
adam|: correct.. how do I pass n from snapshot_description to snapshot_list?
adam|: I want to be able to list snapshots from snapshot_description method
adam|: Can you please tell me how do you make it better? I was hoping not to repeat the code
getting some error .. which is much better.. "Check failed to run: undefined local variable or method `totalMemory' for #<CheckSNMP:0x0000000282b408>, ["./check-snmp-mem.rb:58:in `used_memory'", "./check-snmp-mem.rb:76:in `run'"