# File lib/rhc/commands/domain.rb, line 118 def list domains = rest_client.send(options.mine ? :owned_domains : :domains) warn "In order to deploy applications, you must create a domain with 'rhc setup' or 'rhc create-domain'." and return 1 unless domains.present? warn "The --ids option is deprecated. Domain IDs are displayed by default." if options.ids domains.each do |d| display_domain(d, nil, true) end success "You have access to #{pluralize(domains.length, 'domain')}." 0 end