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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a304fa1f4f4f0b47ff8cef39efa7091c6a85746c186a5ae29a812118bd6d80a8
4
- data.tar.gz: ba28b854489830a69ccbfe4cf69f2239ad1a0248149a6e44091f9e7fafed3bbd
3
+ metadata.gz: 66f7446b74084ac8d518a7ad6f4e5b83d2886608b2a798b673ec00b9389b35c6
4
+ data.tar.gz: 7d86631e10a756b5371f38258c7b2829f06b4e8916ca70b08fe9a4bf58bcef58
5
5
  SHA512:
6
- metadata.gz: 920d8ef282a5f28cc6f55e924eeb72e1af98fc2054d6fc295cca317831934a5f4e202c6fca77655223a2929e3cecea5b911558d224f9fdec08c6c1e1385b2b89
7
- data.tar.gz: 23433a6d50cddc1e066f8144547195a03079f2eff04ee3b7788990f020316903c0be01a91cb66e5323ed204d77097baf09503a27c1ff2a8c808899979457f310
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
- workspace.flatten("#{inf_base_dir}/tf", 'tf')
63
- workspace.add('lib/')
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.10
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-01-30 00:00:00.000000000 Z
12
+ date: 2024-11-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler