Class: ImageBuilder::Builders::AWS::Chroot
- Defined in:
- lib/image_builder/builders/aws_chroot.rb
Overview
Generic class doc comment
Constant Summary
Constants included from ImageBuilder
Instance Attribute Summary collapse
-
#chroot_mounts ⇒ Object
Returns the value of attribute chroot_mounts.
-
#command_wrapper ⇒ Object
Returns the value of attribute command_wrapper.
-
#copy_files ⇒ Object
Returns the value of attribute copy_files.
-
#device_path ⇒ Object
Returns the value of attribute device_path.
-
#mount_path ⇒ Object
Returns the value of attribute mount_path.
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
Instance Method Summary collapse
-
#initialize ⇒ Chroot
constructor
A new instance of Chroot.
- #packer_hash ⇒ Object
Methods inherited from Base
default_block_device_mappings, default_launch_block_device_mappings
Constructor Details
#initialize ⇒ Chroot
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_mounts ⇒ Object
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_wrapper ⇒ Object
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_files ⇒ Object
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_path ⇒ Object
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_path ⇒ Object
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_hash ⇒ Object
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 |