uc3-sam-sceptre 0.0.26 → 0.0.28

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: e63bdfbd4d9d332d45f81c48b4113c0e8926253f6eb1d1da3bc21d8a2076a8b0
4
- data.tar.gz: 58c2682579403736e4d36ee8febe6f2e78c7567d3d45336f2c6a9069bb18c789
3
+ metadata.gz: 489b47866e2eaa17d047a82aa88b5ea3317fbb1b11d56124c4c1871f805a7416
4
+ data.tar.gz: e4a404942126af58047139b14ea44edadab74ac60e325b7ae1ff87dd66931d8c
5
5
  SHA512:
6
- metadata.gz: 5af942b563de3d285cab0b5733d892ee1828fa890b381228eb4b60ef089ba942b41f487b008616211134200cab8898531c6ebb0c7eff9c35133352321cc78ddb
7
- data.tar.gz: d52ae61c6465014478c5a7707f29c80ea0f7638441ff9d886c2dbfcc84a756cfe2ce65637d6f623c0eb9cbcf19315c476d13ff959d3ce06d0926368ee3c2f717
6
+ metadata.gz: 95c8d6b7f9f6531c6076869050f6490eabac8edc311c25d6e4c5d3f67be7aff2dc7c7854b12c745a6ab5bd296bb1b6f9cac811b45e2fb5b222f6a3198fc68dd9
7
+ data.tar.gz: c89a088d64a20cceb835bd76a162e052aae6fe8b4e135cd70667289f73d4d8923f9815aea904ff4220cb44b3979db1d6d8456af83dbd350cccccd69c320bf3df
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Uc3SamSceptre
4
- VERSION = '0.0.26'
4
+ VERSION = '0.0.28'
5
5
  end
@@ -64,6 +64,18 @@ module Uc3SamSceptre
64
64
  system 'sam build'
65
65
  end
66
66
 
67
+ # Run a SAM package (build and upload to the S3 bucket or ECR)
68
+ def package
69
+ args = [
70
+ "--force-upload",
71
+ "--metadata #{_sam_tags(admin_email: true).join(',')}"
72
+ ]
73
+ args << "--s3-bucket #{_locate_value(key: @s3_arn_key)&.gsub('arn:aws:s3:::', '')}" unless @s3_arn_key.nil?
74
+ args << "--s3-prefix #{@stack_name}" unless @s3_arn_key.nil?
75
+ args << "--image-repository #{_locate_value(key: @ecr_uri_key)}" unless @ecr_uri_key.nil?
76
+ system "sam package #{args.join(' ')}"
77
+ end
78
+
67
79
  # Run a SAM deploy
68
80
  def deploy(guided: false)
69
81
  args = [
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uc3-sam-sceptre
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.26
4
+ version: 0.0.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Riley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-05 00:00:00.000000000 Z
11
+ date: 2023-06-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-cloudformation