kennel 1.61.2 → 1.61.3

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: dd27c1efc9afa4ba43482978f3be42ae2ff6301b1532ae3461c043d503fc82c3
4
- data.tar.gz: cc6209799a8b73dd0aca242e8f9a29a8693a2701c888ca3487f8dea0dfb9d100
3
+ metadata.gz: 4fee65e3dbf0bb1646062d6a308050c4a92bcc7e65148e72d1ae3b58a9f3671c
4
+ data.tar.gz: 566a1a1f668a99ff129f3fb51f3e29d1803e95310cc56892bc1b81b5c2d06de7
5
5
  SHA512:
6
- metadata.gz: 28398d5ef02978e71c877edd65a4eb6a462ff1886df46d0bfabac621d640eb67f876d73dacfd52ef2c906c8715de006a7fc9e60d6663f4323f28fcd948cf4f36
7
- data.tar.gz: 49581fac6bd3c3112f0d13cae7465580af642a78135f5b49c4e053d27bd66138b9e88b090912a96e943428903c7bcd8e07960c6beb2b406ecc795a69f4348775
6
+ metadata.gz: 2fbdb4dbd6f2446dd2644e4583bf3f85f1e19e3d1d50258e8865a286f1fda26039def220d433d9af3d130bee8ad39e2d31e1258ca68f876804ab70c28784e005
7
+ data.tar.gz: 1168eab35eb98e39db85910d1c1d83c436cfb0cb5b574beb61fafa0c429040570d5baa8d3a5e846a35834d5df6ee600d6a130104f5863213f284b94dd05e777f
@@ -57,16 +57,17 @@ module Kennel
57
57
  def resolve_link(id, id_map, force: false)
58
58
  found = id_map[id]
59
59
  return found if found && found != :new
60
+ api_resource = self.class.api_resource
60
61
 
61
62
  if found == :new
62
63
  if force
63
- invalid! "Monitor #{id} will be created in the current run and can only be used after that"
64
+ invalid! "#{api_resource.capitalize} #{id} will be created in the current run and can only be used after that"
64
65
  else
65
- Kennel.err.puts "Monitor #{id} will be created in the current run, the next run will link it properly"
66
+ Kennel.err.puts "#{api_resource.capitalize} #{id} will be created in the current run, the next run will link it properly"
66
67
  Kennel::MISSING_ID
67
68
  end
68
69
  else
69
- invalid! "Unable to find monitor #{id} (does not exist and is not being created by the current run)"
70
+ invalid! "Unable to find #{api_resource} #{id} (does not exist and is not being created by the current run)"
70
71
  end
71
72
  end
72
73
 
@@ -147,7 +147,8 @@ module Kennel
147
147
  def print_plan(step, list, color)
148
148
  return if list.empty?
149
149
  list.each do |_, e, a, diff|
150
- Kennel.out.puts Utils.color(color, "#{step} #{tracking_id(e&.as_json || a)}")
150
+ api_resource = (e ? e.class.api_resource : a.fetch(:api_resource))
151
+ Kennel.out.puts Utils.color(color, "#{step} #{api_resource} #{tracking_id(e&.as_json || a)}")
151
152
  print_diff(diff) if diff # only for update
152
153
  end
153
154
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Kennel
3
- VERSION = "1.61.2"
3
+ VERSION = "1.61.3"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kennel
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.61.2
4
+ version: 1.61.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Grosser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-24 00:00:00.000000000 Z
11
+ date: 2020-01-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -102,7 +102,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
102
  version: '0'
103
103
  requirements: []
104
104
  rubyforge_project:
105
- rubygems_version: 2.7.6
105
+ rubygems_version: 2.7.6.2
106
106
  signing_key:
107
107
  specification_version: 4
108
108
  summary: Keep datadog monitors/dashboards/etc in version control, avoid chaotic management