moonshot 1.0.0.rc2 → 1.0.0.rc3

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
  SHA1:
3
- metadata.gz: dfac10cbd365a0a07119fe3878f3f0a030fa79c3
4
- data.tar.gz: 00629af89308bfaaf2348c780000705e3b03af0a
3
+ metadata.gz: a05eb38a9ee9e40ebe753f7f30401fa292ed5c52
4
+ data.tar.gz: 5d8c1a46350ae9c4ce20fa807d8984e7efded09b
5
5
  SHA512:
6
- metadata.gz: f32b60ee01d6eb0c143f67bded83e912bdb757e8bc6c52be40686fa671c9388a13c23821930e39993e213deb4483845e9e776b5f91f28b9254c62a133681e1da
7
- data.tar.gz: 0a66c12ab355855653ec1bd88019a1f0aa2bbea71cf81b49be364aa15219f733303af7e428f1cb9a0ba3216a009d809278c699c1d83c02fe9ab24bb4db928138
6
+ metadata.gz: e82f07c0ae1e73c8d5edb906f18355984cc5fea98bbce2da6aac8f7f2fcf435635c1a1a8e691bfd8ecd05be14b9541e47b565fe431aecf3f4231e525c43a1faa
7
+ data.tar.gz: 4d8c784155b0d5f3f759930d0a50bf4ab8e31021fcb710d6819f39ee508f1c80f3888c2ec928f7d1964018729dbbce7b97381c4523d4caead741d37ed55bd2ea
@@ -2,5 +2,10 @@ module Moonshot
2
2
  class SSHConfig
3
3
  attr_accessor :ssh_identity_file
4
4
  attr_accessor :ssh_user
5
+
6
+ def initialize
7
+ @ssh_identity_file = ENV['MOONSHOT_SSH_KEY_FILE']
8
+ @ssh_user = ENV['MOONSHOT_SSH_USER']
9
+ end
5
10
  end
6
11
  end
@@ -239,8 +239,7 @@ module Moonshot
239
239
  stack_name: @name,
240
240
  template_body: template.body,
241
241
  capabilities: ['CAPABILITY_IAM'],
242
- parameters: @config.parameters.values.map(&:to_cf),
243
- tags: make_tags
242
+ parameters: @config.parameters.values.map(&:to_cf)
244
243
  )
245
244
  true
246
245
  rescue Aws::CloudFormation::Errors::ValidationError => e
@@ -8,6 +8,7 @@ module Moonshot
8
8
  @app_name = app_name
9
9
  end
10
10
 
11
+ # rubocop:disable Metrics/AbcSize
11
12
  def list
12
13
  result = []
13
14
  next_token = nil
@@ -16,10 +17,15 @@ module Moonshot
16
17
  resp.stacks.each do |stack|
17
18
  app_tag = stack.tags.find { |t| t.key == 'moonshot_application' }
18
19
  env_tag = stack.tags.find { |t| t.key == 'moonshot_environment' }
20
+ legacy_tag = stack.tags.find { |t| t.key == 'ah_stage' }
19
21
 
20
- next unless app_tag && app_tag.value == Moonshot.config.app_name
21
- result <<
22
- EnvironmentDescription.new(env_tag.value, stack.creation_time, stack.stack_status)
22
+ if app_tag && app_tag.value == Moonshot.config.app_name
23
+ result <<
24
+ EnvironmentDescription.new(env_tag.value, stack.creation_time, stack.stack_status)
25
+ elsif legacy_tag && legacy_tag.value.start_with?(Moonshot.config.app_name)
26
+ result <<
27
+ EnvironmentDescription.new(legacy_tag.value, stack.creation_time, stack.stack_status)
28
+ end
23
29
  end
24
30
  break unless resp.next_token
25
31
  next_token = resp.next_token
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moonshot
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc2
4
+ version: 1.0.0.rc3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cloud Engineering <engineering@acquia.com>
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-11 00:00:00.000000000 Z
11
+ date: 2016-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk