Class: ImageBuilder::Builders::AWS::Chroot

Inherits:
Base
  • Object
show all
Defined in:
lib/image_builder/builders/aws_chroot.rb

Overview

Generic class doc comment

Constant Summary

Constants included from ImageBuilder

VERSION

Instance Attribute Summary collapse

Attributes inherited from Base

#access_key, #ami_block_device_mappings, #ami_description, #ami_groups, #ami_name, #ami_product_codes, #ami_regions, #ami_users, #ami_virtualization_type, #associate_public_ip_address, #availability_zone, #enhanced_networking, #iam_instance_profile, #instance_type, #launch_block_device_mappings, #region, #run_tags, #secret_key, #security_group_id, #security_group_ids, #source_ami, #spot_price, #spot_price_auto_product, #ssh_port, #ssh_private_ip, #ssh_private_key_file, #ssh_timeout, #ssh_username, #subnet_id, #tags, #temporary_key_pair_name, #token, #type, #user_data, #user_data_file, #vpc_id

Attributes inherited from Base

#name

Instance Method Summary collapse

Methods inherited from Base

default_block_device_mappings, default_launch_block_device_mappings

Constructor Details

#initializeChroot

Returns a new instance of Chroot.



14
15
16
17
# File 'lib/image_builder/builders/aws_chroot.rb', line 14

def initialize
  super
  @type = 'amazon-chroot'
end

Instance Attribute Details

#chroot_mountsObject

Returns the value of attribute chroot_mounts.



8
9
10
# File 'lib/image_builder/builders/aws_chroot.rb', line 8

def chroot_mounts
  @chroot_mounts
end

#command_wrapperObject

Returns the value of attribute command_wrapper.



9
10
11
# File 'lib/image_builder/builders/aws_chroot.rb', line 9

def command_wrapper
  @command_wrapper
end

#copy_filesObject

Returns the value of attribute copy_files.



10
11
12
# File 'lib/image_builder/builders/aws_chroot.rb', line 10

def copy_files
  @copy_files
end

#device_pathObject

Returns the value of attribute device_path.



11
12
13
# File 'lib/image_builder/builders/aws_chroot.rb', line 11

def device_path
  @device_path
end

#mount_pathObject

Returns the value of attribute mount_path.



12
13
14
# File 'lib/image_builder/builders/aws_chroot.rb', line 12

def mount_path
  @mount_path
end

Instance Method Details

#packer_hashObject



19
20
21
22
23
24
25
26
27
28
29
# File 'lib/image_builder/builders/aws_chroot.rb', line 19

def packer_hash
  hash = super

  attr_to_hash(hash, :chroot_mounts)
  attr_to_hash(hash, :command_wrapper)
  attr_to_hash(hash, :copy_files)
  attr_to_hash(hash, :device_path)
  attr_to_hash(hash, :mount_path)

  hash
end