Created
November 2, 2015 23:14
-
-
Save dalehenrich/8a3ad332cbf72dd1aea9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
projectinstall | |
" | |
project install ( <project-name> | [--local|--stone] --url=<project-entry-url> ) | |
" | |
| projectName registration | | |
self | |
getSubcommandOptsMixedLongShort: | |
{#('local' nil #'none'). | |
#('stone' nil #'none'). | |
#('url' nil #'required')}. | |
subOptions | |
at: 'url' | |
ifPresent: [ :url | | |
| projectEntry projectPath | | |
subOptions | |
at: 'stone' | |
ifPresent: [ :ignored | projectPath := TDProjectEntryDefinition sys_stone_projects ] | |
ifAbsent: [ | |
"--local default" | |
projectPath := TDProjectEntryDefinition sys_local_server_projects ]. | |
projectEntry := self projectEntryObjectFromUrl: url nodePath: projectPath. | |
projectName := projectEntry projectName ] | |
ifAbsent: [ projectName := subArguments at: 1 ]. | |
registration := self resolveProjectRegistrationReference: projectName. | |
^ registration installProjectUsing: self |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment