minimal_pipeline 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/minimal_pipeline/ec2.rb +4 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d8a7beb45dfb7e0a657c774954190584c229ad24a18c2a9b01f826e7fa5a82ed
|
4
|
+
data.tar.gz: 6c4e7688bbf2ae12adeb7f61efa5bea777a2309c8c7571fd2fd3ce40d3dd3a4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a25fb8ad3faca11eb95fbf44a8adbd187a054462eaf67fcdedda03ecca563dbe78c7969df4def3cfa4cea17425c85cfcaaa1a4f8356df5c63286d4567446ea5
|
7
|
+
data.tar.gz: 97a78ae2cd3bcc02c2e4a7f57eb2e83ea845dd082934150176e09e2c4f8937184b6cf44a793b143d54d952c1573e6a409c737c7b3cc09968583c477645c02591
|
data/lib/minimal_pipeline/ec2.rb
CHANGED
@@ -102,14 +102,17 @@ class MinimalPipeline
|
|
102
102
|
#
|
103
103
|
# @params block_device_mappings [Array] Block device mappings with snapshots
|
104
104
|
# @params ami_name [String] The name of the AMI to create
|
105
|
+
# @return [String] The AMI ID of the newly created AMI
|
105
106
|
def register_ami(block_device_mappings, ami_name)
|
106
|
-
@client.register_image(
|
107
|
+
response = @client.register_image(
|
107
108
|
architecture: 'x86_64',
|
108
109
|
block_device_mappings: block_device_mappings,
|
109
110
|
name: ami_name,
|
110
111
|
root_device_name: '/dev/sda1',
|
111
112
|
virtualization_type: 'hvm'
|
112
113
|
)
|
114
|
+
|
115
|
+
response.image_id
|
113
116
|
end
|
114
117
|
|
115
118
|
# Copy the snapshots from the original account into the new one
|
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.1.
|
4
|
+
version: 0.1.4
|
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: 2018-11-
|
12
|
+
date: 2018-11-07 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: aws-sdk
|