Method: CF::App::PushInteractions#ask_domain
- Defined in:
- lib/cf/cli/app/push/interactions.rb
#ask_domain(app) ⇒ Object
17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/cf/cli/app/push/interactions.rb', line 17 def ask_domain(app) choices = app.space.domains = { :choices => choices + ["none"], :display => proc { |choice| choice.is_a?(String) ? choice : choice.name }, :allow_other => true } [:default] = choices.first ask "Domain", end |