sumomo 0.8.7 → 0.8.8
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/exe/sumomo +8 -0
- data/lib/sumomo/stack.rb +1 -1
- data/lib/sumomo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6c9e1fb485114c6de088d53aaded28ef9f4784451a1e857bd74263845751106
|
4
|
+
data.tar.gz: 9175909b6a136b65ccfec51694ed522377701d1b3be6d2ea21b6c9ede34809ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 633e4223e5a4e1ef5a26e72c5915cc26812db19f059a78e379a0865516ab14aeee9d67bd54d075b693ceab43c935165172b77b7eb810a1a3e673f2b564e3b764
|
7
|
+
data.tar.gz: ce98bc4eccd81a39ad8ef2cb1970e5ad8467f06504b84f4bfb16334b2d1106586da49014906cd21b9ee88ba1e685a7e69f9002627b15bc5dad0661bdd5f66cad
|
data/exe/sumomo
CHANGED
@@ -43,6 +43,14 @@ cmd_opts = case cmd
|
|
43
43
|
puts "Outputs for stack #{ARGV[0]}"
|
44
44
|
puts Sumomo.get_stack_outputs(name: ARGV[0], region: global_opts[:region]).to_yaml
|
45
45
|
|
46
|
+
when 'login'
|
47
|
+
puts "Login to stack #{ARGV[0]} instance at #{ARGV[1]}"
|
48
|
+
`aws s3 cp s3://#{ARGV[0]}/cloudformation/#{ARGV[0]}_master_key.pem x.txt`
|
49
|
+
key = JSON.parse(File.read('x.txt'))['value']
|
50
|
+
File.write('key.pem', key)
|
51
|
+
`chmod 0600 key.pem`
|
52
|
+
exec "ssh -i 'key.pem' ec2-user@#{ARGV[1]}"
|
53
|
+
|
46
54
|
when 'testapi'
|
47
55
|
local_opts = Trollop.options do
|
48
56
|
opt :filename, 'File that describes the stack', type: :string, default: 'Sumomofile'
|
data/lib/sumomo/stack.rb
CHANGED
data/lib/sumomo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sumomo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Siaw
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|