Class: Packerman::Dsl::Builders::AmazonInstance
- Inherits:
-
Packerman::Dsl::Builders
- Object
- Packerman::Dsl
- Packerman::Dsl::Builders
- Packerman::Dsl::Builders::AmazonInstance
- Includes:
- Node
- Defined in:
- lib/packerman/dsl/builders/amazon_instance.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_keys ⇒ Object
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 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/packerman/dsl/builders/amazon_instance.rb', line 25 def optional_keys [ :ami_block_device_mappings, :ami_description, :ami_groups, :ami_product_codes, :ami_regions, :ami_users, :ami_virtualization_type, :associate_public_ip_address, :availability_zone, :bundle_destination, :bundle_prefix, :bundle_upload_command, :bundle_vol_command, :ebs_optimized, :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, :user_data, :user_data_file, :vpc_id, :x509_upload_path, :windows_password_timeout ] end |
.require_keys ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/packerman/dsl/builders/amazon_instance.rb', line 9 def require_keys [ :access_key, :account_id, :ami_name, :instance_type, :region, :s3_bucket, :secret_key, :source_ami, :ssh_username, :x509_cert_path, :x509_key_path ] end |
Instance Method Details
#type ⇒ Object
4 5 6 |
# File 'lib/packerman/dsl/builders/amazon_instance.rb', line 4 def type "amazon-instance" end |