minimal_pipeline 0.2.9 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 52ec0764c51ef0a29853dbaa44b9da0800391a6608f04b811d2c73c36abb29ec
4
- data.tar.gz: e8e8deee11809ea4b9932084df5c40decaf559f13298166fbac23acf2ce73ee9
3
+ metadata.gz: 1a35fff1b793f5cb3fe600a238f1b5abf234c2e686df39c4eec639ce36decf51
4
+ data.tar.gz: aef818ebb98e21d7af6cdb941ee8145673393655336aaeb2185635d6a4efc861
5
5
  SHA512:
6
- metadata.gz: 3e0a6b9956f88d765d32cea1d7f85d2a5bca1f1b695f0cd196c4714ef4956d36f5ac73fcf2cdcf73f126de2e30cfcbc27ed66dab2d7aa49890e949975212bef9
7
- data.tar.gz: ddbff16301d9ec0588d2890ac37e283bda131f8cccad2b98bbca27209685c6aa5a517606d666c6174c6974882c0844e7d9330811dd9616f2f594ae168f859d5f
6
+ metadata.gz: '022183e7ccf435e0dad9e9611c0d251d860090954e5caa2492c59141b4ed1f59c6a8245698cb5f7cdbb9ecbdf7dc3b9b8f882970f1f026844269f949863a15ec'
7
+ data.tar.gz: e55213eace9a8aa2903ec70edcc504f7cee5630affa35aa902b644522161adaa771317b14461e7aebadda7db86e7c30c13b9d914492ba961c472dbeb8470618f
@@ -137,7 +137,7 @@ class MinimalPipeline
137
137
  # stack state is reached.
138
138
 
139
139
  # @param stack_name [String] The name of the CloudFormation stack
140
- # @param stack_parameters [Hash] Parameters to be passed into the stack
140
+ # @param parameters [Hash] Parameters to be passed into the stack
141
141
  def deploy_stack(stack_name, parameters, template,
142
142
  capabilities = ['CAPABILITY_IAM'], disable_rollback: false)
143
143
  wait_options = {
@@ -99,13 +99,14 @@ class MinimalPipeline
99
99
  # Register a new AMI based on block device mappings
100
100
  # Currently only supports x86_64 HVM
101
101
  #
102
- # @params block_device_mappings [Array] Block device mappings with snapshots
103
- # @params ami_name [String] The name of the AMI to create
102
+ # @param block_device_mappings [Array] Block device mappings with snapshots
103
+ # @param ami_name [String] The name of the AMI to create
104
104
  # @return [String] The AMI ID of the newly created AMI
105
- def register_ami(block_device_mappings, ami_name)
105
+ def register_ami(block_device_mappings, ami_name, ena_support: false)
106
106
  response = @client.register_image(
107
107
  architecture: 'x86_64',
108
108
  block_device_mappings: block_device_mappings,
109
+ ena_support: ena_support,
109
110
  name: ami_name,
110
111
  root_device_name: '/dev/sda1',
111
112
  virtualization_type: 'hvm'
@@ -116,7 +117,7 @@ class MinimalPipeline
116
117
 
117
118
  # Copy the snapshots from the original account into the new one
118
119
  #
119
- # @params block_device_mappings [Array] Block device mappings with snapshots
120
+ # @param block_device_mappings [Array] Block device mappings with snapshots
120
121
  # @param kms_key_id [String] The ID of the KMS key. Omit to use default
121
122
  # @return [Array] Block device mappings with updated snapshot ids
122
123
  def copy_snapshots_in_new_account(block_device_mappings, kms_key_id = nil)
@@ -137,9 +138,9 @@ class MinimalPipeline
137
138
  #
138
139
  # The new image will be encrypted. You can optionally copy across regions
139
140
  #
140
- # @params image_id [String] The AMI ID to copy
141
- # @params image_name [String] The name of the new image
142
- # @params kms_key_id [String] Non-default KMS key ID to use for encryption
141
+ # @param image_id [String] The AMI ID to copy
142
+ # @param image_name [String] The name of the new image
143
+ # @param kms_key_id [String] Non-default KMS key ID to use for encryption
143
144
  # @return [String] The newly created AMI ID
144
145
  def copy_image(image_id, image_name, kms_key_id = nil)
145
146
  params = {
@@ -20,7 +20,7 @@ class MinimalPipeline
20
20
  # Zips up lambda code in preparation for upload
21
21
  #
22
22
  # @param input [String] The path to a file or directory to zip up
23
- # @param zipefile_name [String] The path to the resulting zip file
23
+ # @param zipfile_name [String] The path to the resulting zip file
24
24
  def prepare_zipfile(input, zipfile_name)
25
25
  Zip::File.open(zipfile_name, Zip::File::CREATE) do |zipfile|
26
26
  if File.directory?(input)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minimal_pipeline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.9
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mayowa Aladeojebi
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-02-12 00:00:00.000000000 Z
12
+ date: 2019-04-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: aws-sdk-cloudformation