Skip to content
This repository has been archived by the owner on Aug 29, 2018. It is now read-only.

Commit

Permalink
Deprecate --ids option
Browse files Browse the repository at this point in the history
  • Loading branch information
liggitt committed Dec 17, 2013
1 parent 21acc22 commit fdc1889
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/rhc/commands/domain.rb
Original file line number Diff line number Diff line change
Expand Up @@ -111,12 +111,13 @@ def show(_)

summary "Display all domains you have access to"
option ['--mine'], "Display only domains you own"
option ['--ids'], "Display the unique id of the domain (not supported by all servers)"
option ['--ids'], "Display the unique id of the domain (deprecated, domain IDs are now displayed by default)"
alias_action :domains, :root_command => true
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)
Expand Down

0 comments on commit fdc1889

Please sign in to comment.