Sha256: f8993281b5ae5f4ab5e9abde3b3abfce8c59ab31e0d9ec9abec137c50cc287c5
Contents?: true
Size: 790 Bytes
Versions: 3
Compression:
Stored size: 790 Bytes
Contents
require 'EC2' # amazon-ec2 gem module Rudy module AWS extend self unless defined?(Rudy::AWS::VALID_REGIONS) VALID_REGIONS = [:'eu-west-1', :'us-east-1'].freeze end def valid_region?(r); VALID_REGIONS.member?(r.to_sym || ''); end # Modifies +str+ by removing <tt>[\0\n\r\032\\\\]</tt> and escaping <tt>[\'\"]</tt> def escape(str) str.to_s.tr("[\0\n\r\032\\\\]", '').gsub(/([\'\"])/, '\\1\\1') end def escape!(str) str.to_s.tr!("[\0\n\r\032\\\\]", '').gsub!(/([\'\"])/, '\\1\\1') end require 'rudy/aws/sdb' require 'rudy/aws/ec2' require 'rudy/aws/s3' Rudy::Utils.require_glob(RUDY_LIB, 'rudy', 'aws', '{ec2,s3,sdb}', "*.rb") class Error < ::EC2::Error; end end end
Version data entries
3 entries across 3 versions & 2 rubygems
Version | Path |
---|---|
solutious-rudy-0.9.1 | lib/rudy/aws.rb |
rudy-0.9.0 | lib/rudy/aws.rb |
rudy-0.9.1 | lib/rudy/aws.rb |