sumomo 0.8.21 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 46ab2e171518c606e170495945ded07306818f92a87ed861ed1ff828f639a6ff
4
- data.tar.gz: da07132440368143499523b7dc2bc601601a0b31079c7f524595c23673a898a9
3
+ metadata.gz: '073782fdfbe69977c7593b76415797b035764772302b35c50ccf69533324c875'
4
+ data.tar.gz: 1efbe5244de1bf4cd3c8ff6faf18a3b3bbda9b4137297c1ba6d1349553ea60a9
5
5
  SHA512:
6
- metadata.gz: 7e1b460d2434ca8bbd0d4e82aec0591f1b8d1fb6f70f899a5f4c73bda3126cfe4bb8176a54a36f884db5b6f1accf6c20e9cd6639a941304a1015c3e6ee122088
7
- data.tar.gz: 18b4b61fca0334882e970210a284723f4036d6876c9028aa046d709bb5fc3500b8d51d3ca8d1a58804c1e9a06bb30f08c0cc33a5f6b6ee882597a60e4eba3c9b
6
+ metadata.gz: 9ee43afb24863f75a9d421d116e696e410ad90c2cdb15e1bd353c05bcde3d6ef08a69055ede03b3ad62f87c0483196a643029839afe255266292d7a5371957b1
7
+ data.tar.gz: 92f385cc371f99e5201540d9fecc75f6a66ced34b75d3c397bbc85706c1ab00d72e25651d56d30402549994ad4fb6f3b6d4f03df9edcfb0f4c794af036d9f5f9
data/exe/sumomo CHANGED
@@ -62,7 +62,7 @@ cmd_opts = case cmd
62
62
  gsub(/(.{64}) /, "\\1\n")
63
63
  File.write('key.pem', key)
64
64
  `chmod 0600 key.pem`
65
- exec "ssh -i -hostkey=* 'key.pem' ec2-user@#{ARGV[1]} #{ARGV[2]}"
65
+ exec "ssh -i 'key.pem' ec2-user@#{ARGV[1]} #{ARGV[2]}"
66
66
 
67
67
  when 'testapi'
68
68
  local_opts = Trollop.options do
data/lib/sumomo/ec2.rb CHANGED
@@ -277,7 +277,7 @@ module Sumomo
277
277
  @ami_lookup_resources ||= {}
278
278
 
279
279
  unless @ami_lookup_resources[type]
280
- @ami_lookup_resources[type] = make 'Custom::AMILookup' do
280
+ @ami_lookup_resources[type] = make 'Custom::AMILookup', name: "#{name}AmiLookup" do
281
281
  InstanceType type
282
282
  end
283
283
  end
@@ -335,14 +335,14 @@ module Sumomo
335
335
  end
336
336
  raise 'ec2: egress option needs to be an array' unless egress.is_a? Array
337
337
 
338
- web_sec_group = make 'AWS::EC2::SecurityGroup' do
338
+ web_sec_group = make 'AWS::EC2::SecurityGroup', name: "#{name}SecurityGroup" do
339
339
  GroupDescription "Security group for layer: #{layer}"
340
340
  SecurityGroupIngress ingress
341
341
  SecurityGroupEgress egress
342
342
  VpcId network.vpc
343
343
  end
344
344
 
345
- wait_handle = make 'AWS::CloudFormation::WaitConditionHandle'
345
+ wait_handle = make 'AWS::CloudFormation::WaitConditionHandle', name: "#{name}WaitConditionHandle"
346
346
 
347
347
  user_data = initscript(wait_handle, name, call('Fn::Join', "\n", script_arr))
348
348
 
@@ -355,7 +355,7 @@ module Sumomo
355
355
  }]
356
356
  }
357
357
 
358
- asg_role = make 'AWS::IAM::Role' do
358
+ asg_role = make 'AWS::IAM::Role', name: "#{name}Role" do
359
359
  AssumeRolePolicyDocument role_policy_doc
360
360
  Path '/'
361
361
  Policies [{
@@ -404,12 +404,12 @@ module Sumomo
404
404
  }]
405
405
  end
406
406
 
407
- asg_profile = make 'AWS::IAM::InstanceProfile' do
407
+ asg_profile = make 'AWS::IAM::InstanceProfile', name: "#{name}InstanceProfile" do
408
408
  Path '/'
409
409
  Roles [asg_role]
410
410
  end
411
411
 
412
- launch_config = make 'AWS::AutoScaling::LaunchConfiguration' do
412
+ launch_config = make 'AWS::AutoScaling::LaunchConfiguration', name: "#{name}LaunchConfiguration" do
413
413
  AssociatePublicIpAddress has_public_ips
414
414
  KeyName keypair
415
415
  SecurityGroups [web_sec_group] + security_groups
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Sumomo
4
- VERSION = '0.8.21'
4
+ VERSION = '0.9.0'
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.21
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Siaw
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-11-17 00:00:00.000000000 Z
11
+ date: 2023-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler