simplygenius-atmos 0.10.0 → 0.10.1

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: 150cd6186165ef42f3e4375c403b83e2ad3e7151e3650c723502bc65200f5938
4
- data.tar.gz: 7e0272eede1da6dcf9a44dbce9ca5b626ede5f2ca4b74d7d0163d7cdb7dd2a70
3
+ metadata.gz: e0c1304c504dd0cd09e353384793eeb0e7c09c1eb7935da83fef773ce9f99992
4
+ data.tar.gz: e56fef2966f91b07a1458788c0b17f92ecb3d846d7786b0ca6155f29388857ef
5
5
  SHA512:
6
- metadata.gz: f193baa7ed6a0d9c817aaefb3247f0b2e79e9f7a3c99ecf237240ffba37aef07af883fe4e01a01a2a1d94031f7626f7d668625c9f8af62b00bf18938b0114fca
7
- data.tar.gz: 59560c7e104520aab60a5363508960f55b4a516b859b74c4d1740d3fc3bb8dce1a7dd7607811b5a4383da756f7693965d252d146d2b9a68253e2e91faa0ecbe0
6
+ metadata.gz: 0b35b9967562d7c81ec2e5847db3faf87f96ee30f8f5638d04fbf7d5b8fe239feeda42c6c9ca56e01af059f42df8080e40a4e977da8b6fbb13f7eeb53f6b79bf
7
+ data.tar.gz: b3defecd765a7ea210f22e87be82ea4e828227cf680f378afba0fa32fefc54428aa1d93a1c78e04251815a5de2e658b0ea46d44de3a5ed158beafb9ef5b6ed6b
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ 0.10.1 (09/20/2019)
2
+ -------------------
3
+
4
+ * add a quiet output option to make it easier to use secret values in external scripts [da7770a](https://github.com/simplygenius/atmos/commit/da7770a)
5
+ * latest 0.11 terraform [0959ba6](https://github.com/simplygenius/atmos/commit/0959ba6)
6
+ * add aws cli to image as it comes in handy for oddball deploy scenarios [392bb9b](https://github.com/simplygenius/atmos/commit/392bb9b)
7
+
1
8
  0.10.0 (09/13/2019)
2
9
  -------------------
3
10
 
@@ -32,6 +32,10 @@ module SimplyGenius
32
32
  :flag, "debug output\n",
33
33
  default: false
34
34
 
35
+ option ["-q", "--quiet"],
36
+ :flag, "suppress output\n",
37
+ default: false
38
+
35
39
  option ["-c", "--[no-]color"],
36
40
  :flag, "colorize output (or not)\n (default: $stdout.tty?)"
37
41
 
@@ -104,7 +108,12 @@ module SimplyGenius
104
108
  if Atmos.config.nil?
105
109
  Atmos.config = Config.new(atmos_env, atmos_group)
106
110
  log = Atmos.config.is_atmos_repo? && log? ? "atmos.log" : nil
107
- Logging.setup_logging(debug?, color?, log)
111
+ level = :info
112
+ level = :debug if debug?
113
+ level = :error if quiet?
114
+
115
+ Logging.setup_logging(level, color?, log)
116
+
108
117
  UI.color_enabled = color?
109
118
 
110
119
  Atmos.config.add_user_load_path(*load_path_list)
@@ -21,7 +21,8 @@ module SimplyGenius
21
21
  Atmos.config.provider.auth_manager.authenticate(ENV) do |auth_env|
22
22
  ClimateControl.modify(auth_env) do
23
23
  value = Atmos.config.provider.secret_manager.get(key)
24
- logger.info "Secret value for #{key}: #{value}"
24
+ logger.info "Secret value for #{key}:"
25
+ puts value
25
26
  end
26
27
  end
27
28
 
@@ -100,10 +100,10 @@ module SimplyGenius
100
100
  sio.try(:clear)
101
101
  end
102
102
 
103
- def self.setup_logging(debug, color, logfile)
103
+ def self.setup_logging(level, color, logfile)
104
104
  init_logger
105
105
 
106
- ::Logging.logger.root.level = debug ? :debug : :info
106
+ ::Logging.logger.root.level = level
107
107
  appenders = []
108
108
  detail_pattern = '[%d] %-5l %c{2} %m\n'
109
109
  plain_pattern = '%m\n'
@@ -1,5 +1,5 @@
1
1
  module SimplyGenius
2
2
  module Atmos
3
- VERSION = "0.10.0"
3
+ VERSION = "0.10.1"
4
4
  end
5
5
  end
@@ -18,6 +18,4 @@ module SimplyGenius
18
18
  end
19
19
 
20
20
  require_relative 'atmos/logging'
21
- # SimplyGenius::Atmos::Logging.setup_logging(false, false, nil)
22
-
23
21
  require_relative 'atmos/config'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simplygenius-atmos
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Conway
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-09-13 00:00:00.000000000 Z
11
+ date: 2019-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler