doggy 2.0.22 → 2.0.23

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
  SHA1:
3
- metadata.gz: 4173ba65a169f978507d54116fcfdef94e7f88aa
4
- data.tar.gz: daec7e9d74659eb42561492e7c6b6325adfb908f
3
+ metadata.gz: 8f2401573a8d70ff74b54606ecc6f6edc7e1d43a
4
+ data.tar.gz: 7dd012806dd933a18c1ee963d5c211a6bec7d8af
5
5
  SHA512:
6
- metadata.gz: 8a84a5058a8ac16166ce4f8e6d8d548b5a1332e01ce1c5e26dc9bf28371a034325f77d961f794dcd40b3487a5b4c4237b1c783d06582ee35eb54e463d9a485e9
7
- data.tar.gz: 3b2db7cee753444b453309026ef3be0cd2bc1fd4ab83bf489e26b4f55a7918fb487c8bf6f24d073ef0991375d6ebf7de7350b3f4127fdc6187a79dd0eafb55bd
6
+ metadata.gz: b8186257ba0a9dc84a1ffd2be9b2668a85c6e5818c7242917e3721f636fab15722dcc60297ed6e401500d396e26c2bd1b149a3b2a59193da19f270c807354712
7
+ data.tar.gz: d28db37664d95ed84ab5ac8ff0a6d7bcf1c1e69a40ae92a11d324b4ca274ecb2a721f3426fc922d3d9ca13d92b366173e9eb24d3e6f3c2f200e2cf5e8c7d5d9c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- doggy (2.0.22)
4
+ doggy (2.0.23)
5
5
  json (~> 1.8.3)
6
6
  parallel (~> 1.6.1)
7
7
  rugged (~> 0.23.2)
@@ -9,9 +9,9 @@ module Doggy
9
9
 
10
10
  def run
11
11
  if @ids_or_names.empty?
12
- pull_resources('dashboards', Models::Dashboard)
13
- pull_resources('monitors', Models::Monitor)
14
- pull_resources('screens', Models::Screen)
12
+ pull_resources('dashboards', Models::Dashboard) if !@options.any? || @options['dashboards']
13
+ pull_resources('monitors', Models::Monitor) if !@options.any? || @options['monitors']
14
+ pull_resources('screens', Models::Screen) if !@options.any? || @options['screens']
15
15
  return
16
16
  end
17
17
 
data/lib/doggy/cli.rb CHANGED
@@ -15,7 +15,6 @@ module Doggy
15
15
  method_option "dashboards", type: :boolean, desc: 'Pull dashboards'
16
16
  method_option "monitors", type: :boolean, desc: 'Pull monitors'
17
17
  method_option "screens", type: :boolean, desc: 'Pull screens'
18
- method_option "all", type: :boolean, desc: 'Pull everything', aliases: '-a'
19
18
 
20
19
  def pull(*ids)
21
20
  CLI::Pull.new(options.dup, ids).run
data/lib/doggy/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
 
3
3
  module Doggy
4
- VERSION = "2.0.22"
4
+ VERSION = "2.0.23"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: doggy
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.22
4
+ version: 2.0.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vlad Gorodetsky
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2016-04-27 00:00:00.000000000 Z
12
+ date: 2016-04-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: json
@@ -176,7 +176,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
176
176
  version: '0'
177
177
  requirements: []
178
178
  rubyforge_project:
179
- rubygems_version: 2.6.2
179
+ rubygems_version: 2.5.1
180
180
  signing_key:
181
181
  specification_version: 4
182
182
  summary: Syncs DataDog dashboards, alerts, screenboards, and monitors.