tailstack 0.0.14 → 0.0.15

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 (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/tailstack +8 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7803d39d545e3cebd32ceff0dc1ec202321c45e1
4
- data.tar.gz: e68743936bfaf25e2f16f794b76c745935d7320e
3
+ metadata.gz: fb55c6dd7ef9dcfc7781dea75cc230902931e175
4
+ data.tar.gz: 534948452256210d7361addc16d4032c808dd491
5
5
  SHA512:
6
- metadata.gz: c7c068ff1e5c4242deda5af5ecb6bc8a46bee18899de2e4bd822349a0fd317bebf66412badcc95b336f59f28345bafb38056cdd870d1265a65e6a95a903180cf
7
- data.tar.gz: f93441a710c254371aacf72bfae073bf2275a22308b7dd01b43ea18e80208548226cf58df47ac8cbd0da66fa430856bff796002de92ca1d917bd0aa5e2f80abc
6
+ metadata.gz: b7880d73c6c623db36249357d782d5ddc4da167c1051b60b9d35e87eb23b343c4e302446769dc1ad863604c6aa30831b935271b1e71288f9b206b8be2cbd15d6
7
+ data.tar.gz: 81867d24a632bf39c80ebd79cd5cf0de35d0f44eed816c49d25d546ca16d3783c9d8add8dfa0e3e2aad6640bfe34e33c90d27d52598dda4e6e803b743e45023b
data/bin/tailstack CHANGED
@@ -4,6 +4,8 @@ require 'aws-sdk'
4
4
  require 'json'
5
5
  require 'optparse'
6
6
 
7
+ VERSION='0.0.15'
8
+
7
9
  options = {}
8
10
  OptionParser.new do |opts|
9
11
  opts.banner = "Usage: tailstack [options]"
@@ -14,10 +16,15 @@ OptionParser.new do |opts|
14
16
  opts.on('-o', '--outputs', 'Combine with --list also list outputs'){ |o| options[:outputs] = o }
15
17
  opts.on('-d', '--parms', 'Combine with --list also list parameters'){ |o| options[:parms] = o }
16
18
  opts.on('-g', '--get_output OUTPUT', 'Prints out the parameter and exits'){ |o| options[:get_out] = o }
17
- opts.on('-v', '--verbose', 'Up the verbosity'){ |o| options[:verbose] = o }
19
+ opts.on('-v', '--version', 'Print the version and exit'){ |o| options[:version] = o }
18
20
  opts.on('-h', '--history', 'show previous event history for this stack, otherwise only new events will be shown'){ |o| options[:history] = o }
19
21
  end.parse!
20
22
 
23
+ if options[:version]
24
+ puts VERSION
25
+ exit
26
+ end
27
+
21
28
  using_env_creds = true
22
29
  aws_access_key_id = nil
23
30
  aws_secret_access_key = nil
@@ -31,7 +38,6 @@ if !options.key?(:region)
31
38
  File.read(File.expand_path('~/.aws/config')).each_line do |line|
32
39
  if found_profile
33
40
  options[:region] = line.split('=').last.strip
34
- puts "Using region #{options[:region]}" if options.key? :verbose
35
41
  break;
36
42
  end
37
43
  if line.match("#{options[:profile]}\\]")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tailstack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Fruzza
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-18 00:00:00.000000000 Z
11
+ date: 2017-09-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk