Quoting Alexey Loubyansky <alexey.loubyansky(a)redhat.com>:
Just re-naming the current deploy command to upload doesn't sound
nice
to me.
Because the command actually deploys the package (unless you add
--disabled). So, it's as clear as it can be.
It actually doesn't deploy the package. It only sets up one or more
conditions that MIGHT cause the package to deploy. Even if you upload
the deployment and add it to all server groups and enable all in one
command, you might not get a deployed deployment. You still need at
least one running host on one of the server groups. So even in the
extreme case, a successful "deploy" command might not deploy anything.
I would suggest renaming it to "upload" or "add-content". For bonus
points, the command could try to see if the deployment actually
started and report that condition back to the user.
Renaming just to match an operation name doesn't justify it for me in
this case. It may also do a full-replace if --force is specified, btw.
Agreed. We have to be careful with naming meta-commands.
So, if we were to re-name the command we would have to review the
arguments too.
Would 'upload' enable by default? Or it would only if --enable is
specified (with server groups in the domain mode)?
I think it should not enable by default. Enable-by-default is
convenient for development, but in production you want to be careful
about when something goes live.
Should enable be a separate command? Which would accept server
groups,
etc? This would mean two commands instead of one to actually deploy an app.
I'd say have both. Enable/Disable commands would be convenient. I'm
thinking especially when you want to upload, set up some other things
like datasources, then enable.
What would "undeploy" be renamed to? "remove" seems to be too
general.
unload? remove-deployment?
remove-deployment sounds good.
Alexey
On 06/22/2011 10:46 AM, Heiko Braun wrote:
>
>
> The deployment terms are really messed up in the CLI.
> I.e. the command is named "deploy <foo.bar>", but at the same time
an
> operation exists on the deployment to "deploy" (aka enable) it:
>
> [domain@localhost:9999 /] deploy ~/Desktop/test-application.war
> --all-server-groups
>
>
> [domain@localhost:9999 /]
> /server-group=main-server-group/deployment=test-application.war:deploy
>
>
> I would suggest we align these terms with WIKI page:
>
http://community.jboss.org/wiki/AS7DeploymentTerms
>
> This would mean to rename the command to "upload" and the operation to
> "enable".
> Whatever we chose, we need to remove the ambiguity.
>
> Ike
>
>
>
> _______________________________________________
> jboss-as7-dev mailing list
> jboss-as7-dev(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev
_______________________________________________
jboss-as7-dev mailing list
jboss-as7-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev