datadog_backup 0.9.0 → 0.10.0

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
  SHA256:
3
- metadata.gz: 1a8dbd6b3fdd5e8369259f165b7117ed2234451aae4efb305a341a22e928f555
4
- data.tar.gz: eb1514dd4d63b025f2b32e10795f489a845789162661a2c2d0fa369030cd0c0f
3
+ metadata.gz: 9bd0712f59e88fb8a71aa8f4176a0a8d708daf19eb13c13fabb5d4f382b688f7
4
+ data.tar.gz: 6ad2109526b286f92fba425d1a04e6e8b382a22b65b588085bc3638cdb2d6fc4
5
5
  SHA512:
6
- metadata.gz: d01dbaf32507d8852bec2fb3f6c6615d135c124a6173071c31aceba0d9bc342dfad9985641ce80b976c138cfb4d4ed5c1507d80256f1d471871cfd5f173331cb
7
- data.tar.gz: 71d9c25ded490956078fdb8bd563ad1e69d7aaa71c0d8fc35c10dd03fe941c094f91f4ad20b43526163b336540984bf7713c487345bdbe7d183f99ed0f896729
6
+ metadata.gz: 8f6a61812157c17b83bdf43b85bf6c4b986f6de01c428a9ec5cd1590a8d292559cc2db56cd2c5200a57025ed8806d8814e6638048d6ae3eee2366f419a31ee22
7
+ data.tar.gz: 76383456d4c6be1b10bb510ca5ae35521361873271e804002703050e0f345ea13993354b3b96fbcca42c4936e836ff28f33c3ffe3b851235b43b53e948babad4
@@ -1,3 +1,10 @@
1
+ # [0.10.0](https://github.com/scribd/datadog_backup/compare/v0.9.0...v0.10.0) (2020-08-14)
2
+
3
+
4
+ ### Features
5
+
6
+ * select log levels ([0272d27](https://github.com/scribd/datadog_backup/commit/0272d27530188b36c2b56da6dc075e7507635ecd))
7
+
1
8
  # [0.9.0](https://github.com/scribd/datadog_backup/compare/v0.8.0...v0.9.0) (2020-08-11)
2
9
 
3
10
 
@@ -30,15 +30,21 @@ def prereqs
30
30
  ARGV << '--help' if ARGV.empty?
31
31
 
32
32
  options = OptionParser.new do |opts|
33
- opts.banner = "Usage: #{File.basename($PROGRAM_NAME)} <backup|diffs>"
33
+ opts.banner = "Usage: #{File.basename($PROGRAM_NAME)} <backup|diffs|restore>"
34
34
  opts.separator ''
35
35
  opts.on_tail('-h', '--help', 'Show this message') do
36
36
  puts opts
37
37
  exit 0
38
38
  end
39
- opts.on('--debug', 'debug logging') do
39
+ opts.on('--debug', 'log debug and above') do
40
40
  LOGGER.level = Logger::DEBUG
41
41
  end
42
+ opts.on('--shh', 'log warnings and above') do
43
+ LOGGER.level = Logger::WARN
44
+ end
45
+ opts.on('--shhh', 'log errors and above') do
46
+ LOGGER.level = Logger::ERROR
47
+ end
42
48
  opts.on('--backup-dir PATH', '`backup` by default') do |path|
43
49
  @options[:backup_dir] = path
44
50
  end
@@ -48,7 +54,7 @@ def prereqs
48
54
  opts.on('--dashboards-only') do
49
55
  @options[:resources] = [DatadogBackup::Dashboards]
50
56
  end
51
- opts.on('--json', 'format backups as JSON instead of YAML. Does not impact `diffs` nor `restore`, but do not mix.') do
57
+ opts.on('--json', 'format backups as JSON instead of YAML. Does not impact `diffs` nor `restore`, but do not mix formats in the same backup-dir.') do
52
58
  @options[:output_format] = :json
53
59
  end
54
60
  opts.on('--no-color', 'removes colored output from diff format') do
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DatadogBackup
4
- VERSION = '0.9.0'
4
+ VERSION = '0.10.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datadog_backup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kamran Farhadi
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-08-11 00:00:00.000000000 Z
12
+ date: 2020-08-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: amazing_print