Skip to content

Instantly share code, notes, and snippets.

@dalehenrich
Created November 2, 2015 23:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dalehenrich/8a3ad332cbf72dd1aea9 to your computer and use it in GitHub Desktop.
Save dalehenrich/8a3ad332cbf72dd1aea9 to your computer and use it in GitHub Desktop.
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