Permalink
Browse files

Make use of cache here

  • Loading branch information...
1 parent 5a2b9e9 commit 34ba17455ed211245e00aaa80847b008f0c489a4 @BanzaiMan BanzaiMan committed Jan 15, 2013
Showing with 3 additions and 5 deletions.
  1. +3 −5 lib/rhc/wizard.rb
View
@@ -334,14 +334,12 @@ def show_app_info_stage
section do
say "Checking for applications ... "
- apps = rest_client.domains.map(&:applications).flatten
-
- if !apps.nil? and !apps.empty?
- success "found #{apps.length}"
+ if !applications.nil? and !applications.empty?
+ success "found #{applications.length}"
paragraph do
indent do
- say table(apps.map do |app|
+ say table(applications.map do |app|
[app.name, app.app_url]
end)
end

0 comments on commit 34ba174

Please sign in to comment.