lib/doggy/cli/pull.rb in doggy-2.0.22 vs lib/doggy/cli/pull.rb in doggy-2.0.23

- old
+ new

@@ -7,12 +7,12 @@ @ids_or_names = ids_or_names end def run if @ids_or_names.empty? - pull_resources('dashboards', Models::Dashboard) - pull_resources('monitors', Models::Monitor) - pull_resources('screens', Models::Screen) + pull_resources('dashboards', Models::Dashboard) if !@options.any? || @options['dashboards'] + pull_resources('monitors', Models::Monitor) if !@options.any? || @options['monitors'] + pull_resources('screens', Models::Screen) if !@options.any? || @options['screens'] return end @ids_or_names.each do |id_or_name| @local_resources = Doggy::Model.all_local_resources