Module: DrawCloud

Defined in:
lib/draw_cloud.rb,
lib/draw_cloud/map.rb,
lib/draw_cloud/vpc.rb,
lib/draw_cloud/base.rb,
lib/draw_cloud/output.rb,
lib/draw_cloud/subnet.rb,
lib/draw_cloud/version.rb,
lib/draw_cloud/as_group.rb,
lib/draw_cloud/iam_user.rb,
lib/draw_cloud/join_func.rb,
lib/draw_cloud/locations.rb,
lib/draw_cloud/parameter.rb,
lib/draw_cloud/sns_topic.rb,
lib/draw_cloud/utilities.rb,
lib/draw_cloud/elastic_ip.rb,
lib/draw_cloud/iam_policy.rb,
lib/draw_cloud/simple_ref.rb,
lib/draw_cloud/base64_func.rb,
lib/draw_cloud/network_acl.rb,
lib/draw_cloud/route_table.rb,
lib/draw_cloud/wait_handle.rb,
lib/draw_cloud/ec2_instance.rb,
lib/draw_cloud/get_att_func.rb,
lib/draw_cloud/rds_instance.rb,
lib/draw_cloud/configuration.rb,
lib/draw_cloud/iam_access_key.rb,
lib/draw_cloud/security_group.rb,
lib/draw_cloud/internet_gateway.rb,
lib/draw_cloud/network_acl_entry.rb,
lib/draw_cloud/network_interface.rb,
lib/draw_cloud/route_table_entry.rb,
lib/draw_cloud/rds_security_group.rb,
lib/draw_cloud/ec2_instance_template.rb,
lib/draw_cloud/as_launch_configuration.rb

Overview

Copyright

Copyright © 2012, SweetSpot Diabetes Care, Inc.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this work except in compliance with the License. You may obtain a copy of the License in the LICENSE file, or at:

www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Defined Under Namespace

Modules: Locations, Utilities Classes: ASGroup, ASLaunchConfiguration, Base, Base64Func, Configuration, EC2Instance, EC2InstanceTemplate, ElasticIp, GetAttFunc, IAMAccessKey, IAMPolicy, IAMUser, InternetGateway, JoinFunc, Map, NetworkAcl, NetworkAclEntry, NetworkInterface, Output, Parameter, RDSInstance, RDSSecurityGroup, RouteTable, RouteTableEntry, SNSTopic, SecurityGroup, SimpleRef, Subnet, Vpc, WaitHandle

Constant Summary collapse

VERSION =
"0.0.1"

Class Method Summary collapse

Class Method Details

.ref(object) ⇒ Object



19
20
21
22
23
24
25
26
27
28
29
# File 'lib/draw_cloud.rb', line 19

def self.ref(object)
  if object.respond_to? :ref
    object.ref
  elsif object.is_a? Symbol
    resource_style(object)
  elsif object.respond_to? :each_pair
    object.each_with_object({}) {|(k,v),x| x[k] = DrawCloud.ref(v)}
  else
    object
  end
end

.resource_name(o) ⇒ Object



35
36
37
38
39
40
41
# File 'lib/draw_cloud.rb', line 35

def self.resource_name(o)
  if o.respond_to? :resource_name
    o.resource_name
  else
    resource_style(o)
  end
end

.resource_style(str) ⇒ Object



31
32
33
# File 'lib/draw_cloud.rb', line 31

def self.resource_style(str)
  str.to_s.camelize
end