Method: AmiSpec::AwsInstance#initialize
- Defined in:
- lib/ami_spec/aws_instance.rb
#initialize(options) ⇒ AwsInstance
Returns a new instance of AwsInstance.
15 16 17 18 19 20 21 22 23 24 25 26 27 |
# File 'lib/ami_spec/aws_instance.rb', line 15 def initialize() @role = .fetch(:role) @ami = .fetch(:ami) @subnet_id = .fetch(:subnet_id) @key_name = .fetch(:key_name) @instance_type = .fetch(:aws_instance_type) @public_ip = .fetch(:aws_public_ip) @region = .fetch(:aws_region) @security_group_ids = .fetch(:aws_security_groups) @tags = (.fetch(:tags)) @user_data_file = .fetch(:user_data_file, nil) @iam_instance_profile_arn = .fetch(:iam_instance_profile_arn, nil) end |