Module: Ansible::Ruby::Modules::Helpers::Aws

Included in:
Ec2_ami, Ec2_eip, Ec2_group, Ec2_vol, Iam, Iam_policy
Defined in:
lib/ansible/ruby/modules/helpers/aws.rb

Overview

For some of the AWS modules, we don’t detect the region attribute

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



10
11
12
13
# File 'lib/ansible/ruby/modules/helpers/aws.rb', line 10

def self.included(base)
  base.attribute :region
  base.validates :region, type: String, presence: true
end