lib/doggy/cli/pull.rb in doggy-0.1.3 vs lib/doggy/cli/pull.rb in doggy-0.2.0
- old
+ new
@@ -7,18 +7,12 @@
@ids = ids
end
def run
begin
- if ids.any?
- Doggy::Dash.download(ids)
- Doggy::Monitor.download(ids)
- Doggy::Screen.download(ids)
- else
- Doggy::Dash.download_all
- Doggy::Monitor.download_all
- Doggy::Screen.download_all
- end
+ Doggy::Dash.download(ids)
+ Doggy::Monitor.download(ids)
+ Doggy::Screen.download(ids)
rescue DoggyError
puts "Pull failed."
exit 1
end
end