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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d12954eb075b3c25afec4ba1455de77317d36ccbd2c4a79ad54657f1d130688f
4
- data.tar.gz: f4c056344d60a16fbc66892ba9573c5b60658ea66b4e23588e7b179d58546cf3
3
+ metadata.gz: d6c9e1fb485114c6de088d53aaded28ef9f4784451a1e857bd74263845751106
4
+ data.tar.gz: 9175909b6a136b65ccfec51694ed522377701d1b3be6d2ea21b6c9ede34809ad
5
5
  SHA512:
6
- metadata.gz: be41e7ed63492155a08c6ce68c16f66952e11d52b66d3d886d240a4946fd64d9203d19815630fba2ca24034e6f1bda2847070741457f1143f8ce4238301c0de3
7
- data.tar.gz: 572f764ae21888889ff48fdae709648d3df0c41242e878fb884a7c8f9df28ce8432cbcf77f2935dbbdfe2ed1d7620608d072dcb7d1af1c13d3fbfc0da07928e9
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'
@@ -23,7 +23,7 @@ module Sumomo
23
23
  description: "Lambda Function in #{@bucket_name}",
24
24
  function_key: "cloudformation/lambda/function_#{name}",
25
25
  handler: 'index.handler',
26
- runtime: 'nodejs8.10',
26
+ runtime: 'nodejs10.x',
27
27
  memory_size: 128,
28
28
  timeout: 30,
29
29
  role: nil)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Sumomo
4
- VERSION = '0.8.7'
4
+ VERSION = '0.8.8'
5
5
  end
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.7
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: 2019-11-07 00:00:00.000000000 Z
11
+ date: 2020-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler