awsome 0.0.44 → 0.0.45

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.
Files changed (2) hide show
  1. data/lib/awsome/matchmaker.rb +10 -9
  2. metadata +1 -1
@@ -41,15 +41,16 @@ module Awsome
41
41
  match[:i_pool].each_with_index do |i, idx|
42
42
  r = match[:r_pool][idx]
43
43
  rows << [
44
+ r.nil? ? 'terminate' : 'deploy',
44
45
  i.nil? ? '(new)' : i.id,
45
- r.packages.to_a.join("\n"),
46
- r.volumes.to_a.join("\n"),
47
- r.elbs.join("\n"),
48
- r.ami_id,
49
- r.key,
50
- r.instance_type,
51
- r.availability_zone,
52
- r.security_group_ids,
46
+ (r || i).packages.to_a.join("\n"),
47
+ (r || i).volumes.to_a.join("\n"),
48
+ (r || i).elbs.join("\n"),
49
+ (r || i).ami_id,
50
+ (r || i).key,
51
+ (r || i).instance_type,
52
+ (r || i).availability_zone,
53
+ (r || i).security_group_ids,
53
54
  ]
54
55
  rows << :separator
55
56
  end
@@ -58,7 +59,7 @@ module Awsome
58
59
  # remove last unnecessary separator
59
60
  rows.pop if rows.any?
60
61
 
61
- headings = %w(instance packages volumes elbs ami key type zone secgroup)
62
+ headings = %w(action instance packages volumes elbs ami key type zone secgroup)
62
63
  Terminal::Table.new :headings => headings, :rows => rows, :title => title
63
64
  end
64
65
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awsome
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.44
4
+ version: 0.0.45
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: