ecs_helper 0.0.30 → 0.0.31
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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/ecs_helper/command/exec.rb +7 -24
- data/lib/ecs_helper/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0fe6af3688b7c991c26eaf94f7b72461d3b643dbde163f945069bb72895a241c
|
|
4
|
+
data.tar.gz: 3af17336aedf1b2649fdc3bbd2d9a7d56bf596ac01ed64ecafc863a429c30bd0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ef01bdd22a9f0dfac372f623d75439c5e73782cc19769714b17d0e4c347cf7eff26e549804ca63dab23668d22d993d024f3a844ff30c335efd7190de486ec1eb
|
|
7
|
+
data.tar.gz: ab6db06d690ed72b3a72dc1f1c81e044eacf3253add69c7f90897db71e4b1f61f337898459be32fb3c1f96cefd139d96e86b2d828e10dce2c94840e3a66fa06f
|
data/Gemfile.lock
CHANGED
|
@@ -45,37 +45,20 @@ class ECSHelper::Command::Exec < ECSHelper::Command::Base
|
|
|
45
45
|
def check_aws_cli
|
|
46
46
|
check_bin('aws')
|
|
47
47
|
check_aws_cli_version
|
|
48
|
-
"success"
|
|
49
48
|
end
|
|
50
49
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
check_cmd = Terrapin::CommandLine.new("aws --version")
|
|
54
|
-
result = check_cmd.run
|
|
55
|
-
version = parse_version(result)
|
|
56
|
-
if version === "1"
|
|
57
|
-
messages = [
|
|
58
|
-
"Exec command requires aws cli v2".light_white,
|
|
59
|
-
cmd_option_parser[0].help
|
|
60
|
-
]
|
|
61
|
-
raise ECSHelper::Error::CommandValidationError.new(messages)
|
|
62
|
-
end
|
|
50
|
+
def printable?
|
|
51
|
+
true
|
|
63
52
|
end
|
|
64
53
|
|
|
65
54
|
def run
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
log("Task", task_arn)
|
|
70
|
-
log("Options", options)
|
|
71
|
-
log("Check session-manager-plugin ", check_session_manager_plugin)
|
|
72
|
-
log("Check aws cli version", check_aws_cli)
|
|
73
|
-
exec
|
|
55
|
+
check_session_manager_plugin
|
|
56
|
+
check_aws_cli
|
|
57
|
+
exec_command
|
|
74
58
|
end
|
|
75
59
|
|
|
76
|
-
def
|
|
77
|
-
|
|
78
|
-
exec_cmd.run
|
|
60
|
+
def exec_command
|
|
61
|
+
"aws ecs execute-command --cluster #{cluster_arn} --task #{task_arn} --container #{helper.options[:container]} --command #{helper.options[:command]} --interactive"
|
|
79
62
|
end
|
|
80
63
|
|
|
81
64
|
private
|
data/lib/ecs_helper/version.rb
CHANGED