# File lib/rhc/commands/alias.rb, line 16 def add(app, app_alias) rest_domain = rest_client.find_domain(options.namespace) rest_app = rest_domain.find_application(app) response = rest_app.add_alias(app_alias) results { say response.messages.first } if response.messages 0 end
# File lib/rhc/commands/alias.rb, line 30 def remove(app, app_alias) rest_domain = rest_client.find_domain(options.namespace) rest_app = rest_domain.find_application(app) response = rest_app.remove_alias(app_alias) results { say response.messages.first } if response.messages 0 end