# File lib/rhc/commands/domain.rb, line 55
    def show
      domain = rest_client.domains.first

      warn "In order to deploy applications, you must create a domain with 'rhc setup' or 'rhc create-domain'." and return 1 unless domain

      applications = domain.applications(:include => :cartridges)

      if applications.present?
        header "Applications in #{domain.id} domain" do
          applications.each do |a|
            display_app(a,a.cartridges)
          end
        end
        success "You have #{applications.length} applications in your domain."
      else
        success "The domain #{domain.id} exists but has no applications. You can use 'rhc create-app' to create a new application."
      end

      0
    end