vmc-ng/lib/vmc/cli/app.rb in vmc-0.4.0.beta.88 vs vmc-ng/lib/vmc/cli/app.rb in vmc-0.4.0.beta.89

- old
+ new

@@ -16,11 +16,11 @@ input :url, :desc => "Filter by url regexp" input :full, :type => :boolean, :default => false, :desc => "Verbose output format" def apps if space = input[:space] - space.summarize! + space.summarize! rescue CFoundry::APIError apps = with_progress("Getting applications in #{c(space.name, :name)}") do space.apps end @@ -29,16 +29,15 @@ with_progress("Getting applications") do client.apps(2) end end + line unless quiet? + if apps.empty? and !quiet? - line line "No applications." return end - - line unless quiet? apps.reject! do |a| !app_matches(a, input) end