awful 0.0.25 → 0.0.26

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: a2ef6c30c732a722505390b9175f55382e0fc196
4
- data.tar.gz: 50342bbe511d86c6152602ba26d4db26a48a5049
3
+ metadata.gz: 4eb18297260b483c8bb4a52b095befe53321588f
4
+ data.tar.gz: 6e05e371996156f1773ec936b171a8a56de18a46
5
5
  SHA512:
6
- metadata.gz: ef9bed4c7509802abd206df78896451f2672446692135846a7c10b10b70340400dfbd9a7d3e368aaaa9f03b189ea18ce8a47f39eb8065e07f40e1e7205450150
7
- data.tar.gz: 325ae30892e61be100ed844ad90bfb6ebe7a6bf1e3d2f0e841c6b8ba2b37d797c0b95adfee851541d52199dab0c0a04d594396919607983e3dfc52552154a835
6
+ metadata.gz: e1848acf9ddfe9c8ea93ed2dcd88354b7d08bb747499d458fa74b29b177ad5a2b26c1e935a9a9c7ea4738df98c0fe0d23005b78e35f61c71b68e1990f3b008b1
7
+ data.tar.gz: b81e4c98aac0b753a8ad08166510d5514a61828bd1169116bc89606c49eb160c634bd0a3b970b1fc9c75387bb24ca4bde4b8cc94b3cb7c8539b3e2c302d9822d
data/lib/awful.rb CHANGED
@@ -8,7 +8,8 @@ require 'erb'
8
8
 
9
9
  module Awful
10
10
  class Cli < Thor
11
- class_option :env, aliases: '-e', default: nil, desc: 'Load environment variables from file'
11
+ class_option :env, aliases: '-e', default: nil, desc: 'Load environment variables from file'
12
+ class_option :quiet, aliases: '-q', default: nil, desc: 'Quieten output'
12
13
 
13
14
  no_commands do
14
15
  def ec2
@@ -89,8 +89,9 @@ module Awful
89
89
 
90
90
  desc 'dump NAME', 'dump existing autoscaling group as yaml'
91
91
  def dump(name)
92
- asg = autoscaling.describe_auto_scaling_groups(auto_scaling_group_names: Array(name)).map(&:auto_scaling_groups).flatten.first.to_hash
93
- puts YAML.dump(stringify_keys(asg))
92
+ autoscaling.describe_auto_scaling_groups(auto_scaling_group_names: Array(name)).map(&:auto_scaling_groups).flatten.first.to_hash.tap do |asg|
93
+ puts YAML.dump(stringify_keys(asg)) unless options[:quiet]
94
+ end
94
95
  end
95
96
 
96
97
  desc 'create [FILE]', 'create a new auto-scaling group'
data/lib/awful/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Awful
2
- VERSION = "0.0.25"
2
+ VERSION = "0.0.26"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awful
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.25
4
+ version: 0.0.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ric Lister
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-16 00:00:00.000000000 Z
11
+ date: 2015-07-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler