Class: Packerman::Dsl::Builders::AmazonChroot

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

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



18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# File 'lib/packerman/dsl/builders/amazon_chroot.rb', line 18

def optional_keys
  [
    :ami_description,
    :ami_groups,
    :ami_product_codes,
    :ami_regions,
    :ami_users,
    :ami_virtualization_type,
    :chroot_mounts,
    :command_wrapper,
    :copy_files,
    :device_path,
    :enhanced_networking,
    :force_deregister,
    :mount_path,
    :mount_options,
    :root_volume_size,
    :tags
  ]
end

.require_keysObject



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

def require_keys
  [
    :access_key,
    :ami_name,
    :secret_key,
    :source_ami
  ]
end

Instance Method Details

#typeObject



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

def type
  "amazon-chroot"
end