iapi-idlc-sdk-pfm 1.0.10 → 1.0.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/iapi-idlc-sdk-pfm/command/package.rb +13 -3
- 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: 66f7446b74084ac8d518a7ad6f4e5b83d2886608b2a798b673ec00b9389b35c6
|
4
|
+
data.tar.gz: 7d86631e10a756b5371f38258c7b2829f06b4e8916ca70b08fe9a4bf58bcef58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e5a63e857c446bd96b373813917c1ac5c36f8beac0d67b64a694f18f9a01457dd2946d9a682b2a93640178c957b92088dc4730dabbabf72f53c87347bd1d134
|
7
|
+
data.tar.gz: b3ddf1d5edb157086bfd6ccd54ff8b7fa60659be9bb84371348d75bf92b02e25e837b3bd247eb86421bacec38a280c00f8ccb35ce4ddf18ad6d7a0cc82b2e56f
|
@@ -14,6 +14,12 @@ module Pfm
|
|
14
14
|
description: 'Application Name',
|
15
15
|
default: ''
|
16
16
|
|
17
|
+
option :improved_setup,
|
18
|
+
long: '--improved-setup',
|
19
|
+
description: 'Improved Setup',
|
20
|
+
boolean: true,
|
21
|
+
default: false
|
22
|
+
|
17
23
|
def initialize
|
18
24
|
super
|
19
25
|
@params_valid = true
|
@@ -59,8 +65,12 @@ module Pfm
|
|
59
65
|
|
60
66
|
workspace = Idlc::Workspace.new
|
61
67
|
|
62
|
-
|
63
|
-
|
68
|
+
if @config[:improved_setup]
|
69
|
+
workspace.add('#{inf_base_dir}/tf')
|
70
|
+
else
|
71
|
+
workspace.flatten("#{inf_base_dir}/tf", 'tf')
|
72
|
+
workspace.add('lib/')
|
73
|
+
end
|
64
74
|
workspace.add('.pfm/config') if File.exist? '.pfm/config'
|
65
75
|
workspace.add('backend.tf') if File.exist? 'backend.tf'
|
66
76
|
workspace.add('infraspec.yml') if File.exist? 'infraspec.yml'
|
@@ -73,7 +83,7 @@ module Pfm
|
|
73
83
|
|
74
84
|
# upload to s3
|
75
85
|
s3 = Aws::S3::Resource.new(region: SETTINGS['AWS_REGION'])
|
76
|
-
bucket_name = Idlc::SERVICES[SETTINGS['AWS_REGION']]['build']['publish_bucket']
|
86
|
+
bucket_name = if @config[:improved_setup] ? "imageapi-artifacts-infras" : Idlc::SERVICES[SETTINGS['AWS_REGION']]['build']['publish_bucket']
|
77
87
|
|
78
88
|
obj = s3.bucket(bucket_name).object(package_name)
|
79
89
|
obj.upload_file(dest_zip)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iapi-idlc-sdk-pfm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.11
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Cazell
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2024-
|
12
|
+
date: 2024-11-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|