Class: Packerman::Dsl::Builders::AmazonEbs

Inherits:
Packerman::Dsl::Builders show all
Includes:
Node
Defined in:
lib/packerman/dsl/builders/amazon_ebs.rb

Defined Under Namespace

Classes: AmiBlockDeviceMapping

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Node

#initialize, #method_missing, #to_hash

Methods inherited from Packerman::Dsl

register, register_to_repo, to_subclass

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Packerman::Dsl::Node

Class Method Details

.optional_keysObject



21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# File 'lib/packerman/dsl/builders/amazon_ebs.rb', line 21

def optional_keys
  [
    :ami_block_device_mappings,
    :ami_description,
    :ami_groups,
    :ami_product_codes,
    :ami_regions,
    :ami_users,
    :associate_public_ip_address,
    :availability_zone,
    :enhanced_networking,
    :force_deregister,
    :iam_instance_profile,
    :launch_block_device_mappings,
    :run_tags,
    :security_group_id,
    :security_group_ids,
    :spot_price,
    :spot_price_auto_product,
    :ssh_keypair_name,
    :ssh_private_ip,
    :subnet_id,
    :tags,
    :temporary_key_pair_name,
    :token,
    :user_data,
    :user_data_file,
    :vpc_id,
    :windows_password_timeout,
  ]
end

.require_keysObject



9
10
11
12
13
14
15
16
17
18
19
# File 'lib/packerman/dsl/builders/amazon_ebs.rb', line 9

def require_keys
  [
    :access_key,
    :ami_name,
    :instance_type,
    :region,
    :secret_key,
    :source_ami,
    :ssh_username,
  ]
end

Instance Method Details

#typeObject



4
5
6
# File 'lib/packerman/dsl/builders/amazon_ebs.rb', line 4

def type
  "amazon-ebs"
end