# File lib/rhc/commands/domain.rb, line 97
    def show(_)
      domain = find_domain

      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)
      display_domain(domain, applications, true)

      if applications.present?
        success "You have #{pluralize(applications.length, 'application')} in your domain."
      else
        success "The domain #{domain.name} exists but has no applications. You can use 'rhc create-app' to create a new application."
      end

      0
    end