Classes and Modules
Module Rudy::AWS::EC2Class Rudy::AWS::Error
Class Rudy::AWS::S3
Class Rudy::AWS::SDB
Constants
VALID_REGIONS | = | [:'eu-west-1', :'us-east-1', :'us-west-1', :'ap-southeast-1'].freeze |
Public instance methods
escape
(str)
Modifies str by removing [0\n\r\032\] and escaping ['\"]
[show source]
# File lib/rudy/aws.rb, line 17 17: def escape(str) 18: str.to_s.tr("[\0\n\r\032\\\\]", '').gsub(/([\'\"])/, '\\1\\1') 19: end
escape!
(str)
[show source]
# File lib/rudy/aws.rb, line 20 20: def escape!(str) 21: str.to_s.tr!("[\0\n\r\032\\\\]", '').gsub!(/([\'\"])/, '\\1\\1') 22: end
valid_region?
(r)
[show source]
# File lib/rudy/aws.rb, line 14 14: def valid_region?(r); VALID_REGIONS.member?(r.to_sym || ''); end