Class: Plat::Role::Cpu

Inherits:
Basic
  • Object
show all
Defined in:
lib/plat/role/cpu.rb

Instance Attribute Summary

Attributes inherited from Basic

#layout, #options, #role

Instance Method Summary collapse

Methods inherited from Basic

#allow_access, #count, #initialize, #inspect, #resource_name, #to_s, #type

Constructor Details

This class inherits a constructor from Plat::Role::Basic

Instance Method Details

#ec2Object



4
5
6
# File 'lib/plat/role/cpu.rb', line 4

def ec2
  @ec2 ||= AWS::EC2.new(layout.aws_options)
end

#iam_roleObject



7
8
9
# File 'lib/plat/role/cpu.rb', line 7

def iam_role
  @iam_role ||= Plat::Role::IAMRole.new(self)
end