ecs_helper 0.0.26 → 0.0.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 16ad520e81a6ee88b6cb3b67c8e68ee1cf0e724ea20d1fdd8595ffda8023be65
4
- data.tar.gz: 6d1398b798ae584fbb163d6234f01b209abb00bdd33489ee75e5ec2aae1f9bcd
3
+ metadata.gz: f55caddc893a35d05fbf7778dcbc4c290b5384f3e6e085681fe2957a137deeb0
4
+ data.tar.gz: aa48800b2c966ce376134df397a1c2fcebf9ba22ad678f058433a6c07876b87b
5
5
  SHA512:
6
- metadata.gz: 44029c3fab73d9878376b1590bcba8a0f1ab39324a0aadac136f9736021514390fffec0c221d20769602c14934558221b1685eca8e1867a4f199e7790b5865b5
7
- data.tar.gz: abda0b0495455d13034a82345d2ff5dc09349a08b80c4b641b41ad3117f37fe3a28e25469f4857275babcad65673587dbb76f6398602e8b7447095a6a5f99e8d
6
+ metadata.gz: 0ac816e7907aa1e37b14392dd8d3cc0dbf5127e1a9f3bd6cec76ca4474d9a83e876eafbb003da8b6a48b11b67a9c163c8db4713c9ba1adee30efe1d4a399c9c8
7
+ data.tar.gz: 45d514d5bfe25c083f98d44e561655a1feba0d44727fea02b1f1146dd63311eaf2e173e41d103d8238d1aa9eb0357c5171403b0726523d62eceaab6b5670827b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ecs_helper (0.0.25)
4
+ ecs_helper (0.0.26)
5
5
  aws-sdk-ecr (~> 1.42, >= 1.42)
6
6
  aws-sdk-ecrpublic (~> 1.3, >= 1.3)
7
7
  aws-sdk-ecs (~> 1.80, >= 1.80)
@@ -37,12 +37,16 @@ class ECSHelper::Command::Base
37
37
  end
38
38
  end
39
39
 
40
- private
41
-
42
40
  def required
43
41
  []
44
42
  end
45
43
 
44
+ def printable?
45
+ false
46
+ end
47
+
48
+ private
49
+
46
50
  def processEqual(value)
47
51
  value.start_with?('=') ? value[1..-1] : value
48
52
  end
@@ -18,6 +18,10 @@ class ECSHelper::Command::ExportEnvSecrets < ECSHelper::Command::Base
18
18
  []
19
19
  end
20
20
 
21
+ def printable?
22
+ true
23
+ end
24
+
21
25
  def run
22
26
  return log("No ENV secrets to export. Please pass ENV variables names using -n") if options[:env_vars].empty?
23
27
  export_values
@@ -42,5 +46,6 @@ class ECSHelper::Command::ExportEnvSecrets < ECSHelper::Command::Base
42
46
  rescue Aws::SSM::Errors::ParameterNotFound
43
47
  next
44
48
  end).join(' ')
49
+ variables
45
50
  end
46
51
  end
@@ -14,6 +14,10 @@ class ECSHelper::Command::ExportImages < ECSHelper::Command::Base
14
14
  []
15
15
  end
16
16
 
17
+ def printable?
18
+ true
19
+ end
20
+
17
21
  def run
18
22
  export_images
19
23
  end
@@ -43,7 +43,10 @@ class ECSHelper::Command
43
43
 
44
44
  def run
45
45
  command.validate
46
- command.run
46
+ result = command.run
47
+ puts command if command.printable?
48
+ puts result if command.printable?
49
+ result
47
50
  end
48
51
  end
49
52
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class ECSHelper
4
- VERSION = '0.0.26'
4
+ VERSION = '0.0.27'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecs_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.26
4
+ version: 0.0.27
5
5
  platform: ruby
6
6
  authors:
7
7
  - Artem Petrov