Class: ImageBuilder::Builders::AWS::Instance
- Defined in:
- lib/image_builder/builders/aws_instance.rb
Overview
Generic class doc comment
Constant Summary
Constants included from ImageBuilder
Instance Attribute Summary collapse
-
#account_id ⇒ Object
Returns the value of attribute account_id.
-
#bundle_destination ⇒ Object
-
opt -.
-
-
#bundle_prefix ⇒ Object
Returns the value of attribute bundle_prefix.
-
#bundle_upload_command ⇒ Object
Returns the value of attribute bundle_upload_command.
-
#bundle_vol_command ⇒ Object
Returns the value of attribute bundle_vol_command.
-
#s3_bucket ⇒ Object
Returns the value of attribute s3_bucket.
-
#x509_cert_path ⇒ Object
Returns the value of attribute x509_cert_path.
-
#x509_key_path ⇒ Object
Returns the value of attribute x509_key_path.
-
#x509_upload_path ⇒ Object
Returns the value of attribute x509_upload_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 ⇒ Instance
constructor
A new instance of Instance.
- #packer_hash ⇒ Object
Methods inherited from Base
default_block_device_mappings, default_launch_block_device_mappings
Constructor Details
#initialize ⇒ Instance
Returns a new instance of Instance.
19 20 21 22 |
# File 'lib/image_builder/builders/aws_instance.rb', line 19 def initialize super @type = 'amazon-instance' end |
Instance Attribute Details
#account_id ⇒ Object
Returns the value of attribute account_id.
8 9 10 |
# File 'lib/image_builder/builders/aws_instance.rb', line 8 def account_id @account_id end |
#bundle_destination ⇒ Object
-
opt -
13 14 15 |
# File 'lib/image_builder/builders/aws_instance.rb', line 13 def bundle_destination @bundle_destination end |
#bundle_prefix ⇒ Object
Returns the value of attribute bundle_prefix.
14 15 16 |
# File 'lib/image_builder/builders/aws_instance.rb', line 14 def bundle_prefix @bundle_prefix end |
#bundle_upload_command ⇒ Object
Returns the value of attribute bundle_upload_command.
15 16 17 |
# File 'lib/image_builder/builders/aws_instance.rb', line 15 def bundle_upload_command @bundle_upload_command end |
#bundle_vol_command ⇒ Object
Returns the value of attribute bundle_vol_command.
16 17 18 |
# File 'lib/image_builder/builders/aws_instance.rb', line 16 def bundle_vol_command @bundle_vol_command end |
#s3_bucket ⇒ Object
Returns the value of attribute s3_bucket.
9 10 11 |
# File 'lib/image_builder/builders/aws_instance.rb', line 9 def s3_bucket @s3_bucket end |
#x509_cert_path ⇒ Object
Returns the value of attribute x509_cert_path.
10 11 12 |
# File 'lib/image_builder/builders/aws_instance.rb', line 10 def x509_cert_path @x509_cert_path end |
#x509_key_path ⇒ Object
Returns the value of attribute x509_key_path.
11 12 13 |
# File 'lib/image_builder/builders/aws_instance.rb', line 11 def x509_key_path @x509_key_path end |
#x509_upload_path ⇒ Object
Returns the value of attribute x509_upload_path.
17 18 19 |
# File 'lib/image_builder/builders/aws_instance.rb', line 17 def x509_upload_path @x509_upload_path end |
Instance Method Details
#packer_hash ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/image_builder/builders/aws_instance.rb', line 24 def packer_hash hash = super # Required attr_to_hash(hash, :account_id, true) attr_to_hash(hash, :s3_bucket, true) attr_to_hash(hash, :x509_cert_path, true) attr_to_hash(hash, :x509_key_path, true) # Optional attr_to_hash(hash, :bundle_destination) attr_to_hash(hash, :bundle_prefix) attr_to_hash(hash, :bundle_upload_command) attr_to_hash(hash, :bundle_vol_command) attr_to_hash(hash, :x509_upload_path) hash end |