Method: CF::App::PushInteractions#ask_host

Defined in:
lib/cf/cli/app/push/interactions.rb

#ask_host(name) ⇒ Object



7
8
9
10
11
12
13
14
15
# File 'lib/cf/cli/app/push/interactions.rb', line 7

def ask_host(name)
  # Use .dup here because when we pass app.name deep into interactive,
  # it needs an unfrozen String because the cli allows people to change
  # this value.
  host = name.dup
  ask "Subdomain", :choices => [host, "none"],
    :default => host,
    :allow_other => true
end