Permalink
Browse files

resolve the default URL for showing to the user

Change-Id: I1b6c04e5fd3f12e8dd65084d47bef79b3fcb8863
  • Loading branch information...
1 parent fbb7172 commit 3b775976e7f9d20d08d36f039f78df39c74cf5c0 @vito vito committed Jan 4, 2012
Showing with 7 additions and 4 deletions.
  1. +7 −4 lib/cli/manifest_helper.rb
View
@@ -82,10 +82,13 @@ def configure_app(many=false)
name = manifest("name") ||
set(ask("Application Name", :default => manifest("name")), "name")
- url = ask(
- "Application Deployed URL",
- :default => manifest("url") || DEFAULTS["url"]
- )
+ url_template = manifest("url") || DEFAULTS["url"]
+ url_resolved = url_template.dup
+ resolve_lexically(url_resolved)
+
+ url = ask("Application Deployed URL", :default => url_resolved)
+
+ url = url_template if url == url_resolved
# common error case is for prompted users to answer y or Y or yes or
# YES to this ask() resulting in an unintended URL of y. Special

0 comments on commit 3b77597

Please sign in to comment.