aws_ec2_environment 0.1.0 → 0.1.1
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/CHANGELOG.md +7 -0
- data/Gemfile.lock +22 -15
- data/aws_ec2_environment.gemspec +37 -0
- data/lib/aws_ec2_environment/ssm_port_forwarding_session.rb +1 -1
- data/lib/aws_ec2_environment/version.rb +1 -1
- metadata +4 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 737e9d6f8e8b401117093eafc846a8522f1904afda0f44a98de3568e3ced961d
|
|
4
|
+
data.tar.gz: 702df72ea4cdac5293012c0eb4a73dc5bfdda61a5d6b98d61e6e69bbe9961945
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9bde699e347ad8add1e517e8fa52a6703ea155d76def3ed488097a4037068235b7fb715b655e14c5d6929a8ae99406551f912dfb017a73728c31a4844a04d244
|
|
7
|
+
data.tar.gz: d4078cf90c5a8395e29818e8d07c4de064e78ca9ccdb66e8facd96c25031adf9b734553914870221bb42ad094afab5940d4fb236083db6fae604816ff03d8613
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
aws_ec2_environment (0.1.
|
|
4
|
+
aws_ec2_environment (0.1.1)
|
|
5
5
|
aws-sdk-ec2 (~> 1.0)
|
|
6
6
|
aws-sdk-ssm (~> 1.0)
|
|
7
7
|
|
|
@@ -9,27 +9,32 @@ GEM
|
|
|
9
9
|
remote: https://rubygems.org/
|
|
10
10
|
specs:
|
|
11
11
|
ast (2.4.2)
|
|
12
|
-
aws-eventstream (1.
|
|
13
|
-
aws-partitions (1.
|
|
14
|
-
aws-sdk-core (3.
|
|
15
|
-
aws-eventstream (~> 1, >= 1.0
|
|
16
|
-
aws-partitions (~> 1, >= 1.
|
|
17
|
-
aws-sigv4 (~> 1.
|
|
12
|
+
aws-eventstream (1.4.0)
|
|
13
|
+
aws-partitions (1.1172.0)
|
|
14
|
+
aws-sdk-core (3.233.0)
|
|
15
|
+
aws-eventstream (~> 1, >= 1.3.0)
|
|
16
|
+
aws-partitions (~> 1, >= 1.992.0)
|
|
17
|
+
aws-sigv4 (~> 1.9)
|
|
18
|
+
base64
|
|
19
|
+
bigdecimal
|
|
18
20
|
jmespath (~> 1, >= 1.6.1)
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
aws-
|
|
21
|
+
logger
|
|
22
|
+
aws-sdk-ec2 (1.562.0)
|
|
23
|
+
aws-sdk-core (~> 3, >= 3.231.0)
|
|
24
|
+
aws-sigv4 (~> 1.5)
|
|
22
25
|
aws-sdk-ssm (1.138.0)
|
|
23
26
|
aws-sdk-core (~> 3, >= 3.127.0)
|
|
24
27
|
aws-sigv4 (~> 1.1)
|
|
25
|
-
aws-sigv4 (1.
|
|
28
|
+
aws-sigv4 (1.12.1)
|
|
26
29
|
aws-eventstream (~> 1, >= 1.0.2)
|
|
27
30
|
base64 (0.1.1)
|
|
31
|
+
bigdecimal (3.3.1)
|
|
28
32
|
diff-lcs (1.5.0)
|
|
29
33
|
docile (1.4.0)
|
|
30
|
-
jmespath (1.6.
|
|
31
|
-
json (2.
|
|
34
|
+
jmespath (1.6.2)
|
|
35
|
+
json (2.15.1)
|
|
32
36
|
language_server-protocol (3.17.0.3)
|
|
37
|
+
logger (1.7.0)
|
|
33
38
|
parallel (1.23.0)
|
|
34
39
|
parser (3.2.2.3)
|
|
35
40
|
ast (~> 2.4.1)
|
|
@@ -38,7 +43,7 @@ GEM
|
|
|
38
43
|
rainbow (3.1.1)
|
|
39
44
|
rake (13.0.6)
|
|
40
45
|
regexp_parser (2.8.1)
|
|
41
|
-
rexml (3.2
|
|
46
|
+
rexml (3.4.2)
|
|
42
47
|
rspec (3.11.0)
|
|
43
48
|
rspec-core (~> 3.11.0)
|
|
44
49
|
rspec-expectations (~> 3.11.0)
|
|
@@ -88,6 +93,8 @@ GEM
|
|
|
88
93
|
|
|
89
94
|
PLATFORMS
|
|
90
95
|
arm64-darwin-21
|
|
96
|
+
arm64-darwin-22
|
|
97
|
+
arm64-darwin-23
|
|
91
98
|
x86_64-darwin-19
|
|
92
99
|
x86_64-darwin-20
|
|
93
100
|
x86_64-linux
|
|
@@ -102,4 +109,4 @@ DEPENDENCIES
|
|
|
102
109
|
simplecov
|
|
103
110
|
|
|
104
111
|
BUNDLED WITH
|
|
105
|
-
2.
|
|
112
|
+
2.5.7
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
require_relative "lib/aws_ec2_environment/version"
|
|
4
|
+
|
|
5
|
+
Gem::Specification.new do |spec|
|
|
6
|
+
spec.name = "aws_ec2_environment"
|
|
7
|
+
spec.version = AwsEc2Environment::VERSION
|
|
8
|
+
spec.authors = ["Gareth Jones"]
|
|
9
|
+
spec.email = %w[open-source@ackama.com]
|
|
10
|
+
|
|
11
|
+
spec.summary = "Interact with AWS EC2-based Ruby apps easily"
|
|
12
|
+
spec.homepage = "https://github.com/ackama/aws_ec2_environment"
|
|
13
|
+
spec.license = "MIT"
|
|
14
|
+
spec.required_ruby_version = ">= 3.0.0"
|
|
15
|
+
|
|
16
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
|
17
|
+
spec.metadata["source_code_uri"] = spec.homepage
|
|
18
|
+
spec.metadata["changelog_uri"] = spec.homepage
|
|
19
|
+
|
|
20
|
+
# TODO: we expect to have to disable this if we switch to automatic releases
|
|
21
|
+
# but until then we've got it enabled to make Rubocop happy
|
|
22
|
+
spec.metadata["rubygems_mfa_required"] = "true"
|
|
23
|
+
|
|
24
|
+
# Specify which files should be added to the gem when it is released.
|
|
25
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
|
26
|
+
spec.files = Dir.chdir(__dir__) do
|
|
27
|
+
`git ls-files -z`.split("\x0").reject do |f|
|
|
28
|
+
(f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
spec.bindir = "exe"
|
|
32
|
+
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
|
|
33
|
+
spec.require_paths = ["lib"]
|
|
34
|
+
|
|
35
|
+
spec.add_dependency "aws-sdk-ec2", "~> 1.0"
|
|
36
|
+
spec.add_dependency "aws-sdk-ssm", "~> 1.0"
|
|
37
|
+
end
|
|
@@ -34,7 +34,7 @@ class AwsEc2Environment
|
|
|
34
34
|
|
|
35
35
|
@reader, @writer, @pid = PTY.spawn(ssm_port_forward_cmd(local_port, reason))
|
|
36
36
|
|
|
37
|
-
@cmd_output = ""
|
|
37
|
+
@cmd_output = +""
|
|
38
38
|
@session_id = wait_for_session_id
|
|
39
39
|
|
|
40
40
|
@logger.info("SSM session #{@session_id} opening, forwarding port #{remote_port} on #{instance_id}")
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: aws_ec2_environment
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Gareth Jones
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: aws-sdk-ec2
|
|
@@ -38,7 +37,6 @@ dependencies:
|
|
|
38
37
|
- - "~>"
|
|
39
38
|
- !ruby/object:Gem::Version
|
|
40
39
|
version: '1.0'
|
|
41
|
-
description:
|
|
42
40
|
email:
|
|
43
41
|
- open-source@ackama.com
|
|
44
42
|
executables: []
|
|
@@ -58,6 +56,7 @@ files:
|
|
|
58
56
|
- LICENSE.txt
|
|
59
57
|
- README.md
|
|
60
58
|
- Rakefile
|
|
59
|
+
- aws_ec2_environment.gemspec
|
|
61
60
|
- lib/aws_ec2_environment.rb
|
|
62
61
|
- lib/aws_ec2_environment/ci_service.rb
|
|
63
62
|
- lib/aws_ec2_environment/config.rb
|
|
@@ -75,7 +74,6 @@ metadata:
|
|
|
75
74
|
source_code_uri: https://github.com/ackama/aws_ec2_environment
|
|
76
75
|
changelog_uri: https://github.com/ackama/aws_ec2_environment
|
|
77
76
|
rubygems_mfa_required: 'true'
|
|
78
|
-
post_install_message:
|
|
79
77
|
rdoc_options: []
|
|
80
78
|
require_paths:
|
|
81
79
|
- lib
|
|
@@ -90,8 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
90
88
|
- !ruby/object:Gem::Version
|
|
91
89
|
version: '0'
|
|
92
90
|
requirements: []
|
|
93
|
-
rubygems_version: 3.
|
|
94
|
-
signing_key:
|
|
91
|
+
rubygems_version: 3.6.9
|
|
95
92
|
specification_version: 4
|
|
96
93
|
summary: Interact with AWS EC2-based Ruby apps easily
|
|
97
94
|
test_files: []
|