Skip to content

Commit

Permalink
resolve the default URL for showing to the user
Browse files Browse the repository at this point in the history
Change-Id: I1b6c04e5fd3f12e8dd65084d47bef79b3fcb8863
  • Loading branch information
vito committed Jan 4, 2012
1 parent fbb7172 commit 3b77597
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions lib/cli/manifest_helper.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -82,10 +82,13 @@ def configure_app(many=false)
name = manifest("name") || name = manifest("name") ||
set(ask("Application Name", :default => manifest("name")), "name") set(ask("Application Name", :default => manifest("name")), "name")


url = ask( url_template = manifest("url") || DEFAULTS["url"]
"Application Deployed URL", url_resolved = url_template.dup
:default => manifest("url") || DEFAULTS["url"] 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 # 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 # YES to this ask() resulting in an unintended URL of y. Special
Expand Down

0 comments on commit 3b77597

Please sign in to comment.