1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Update bundle extension

It's now .dab, for Distributed Application Bundle

Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
This commit is contained in:
Aanand Prasad 2016-06-22 14:59:10 -07:00
parent e8ec19bd87
commit 61e2d4240b
2 changed files with 3 additions and 3 deletions

View file

@ -31,7 +31,7 @@ func newDeployCommand(dockerCli *client.DockerCli) *cobra.Command {
cmd := &cobra.Command{ cmd := &cobra.Command{
Use: "deploy [OPTIONS] STACK", Use: "deploy [OPTIONS] STACK",
Aliases: []string{"up"}, Aliases: []string{"up"},
Short: "Create and update a stack", Short: "Create and update a stack from a Distributed Application Bundle (DAB)",
Args: cli.ExactArgs(1), Args: cli.ExactArgs(1),
RunE: func(cmd *cobra.Command, args []string) error { RunE: func(cmd *cobra.Command, args []string) error {
opts.namespace = args[0] opts.namespace = args[0]

View file

@ -15,11 +15,11 @@ func addBundlefileFlag(opt *string, flags *pflag.FlagSet) {
flags.StringVarP( flags.StringVarP(
opt, opt,
"bundle", "f", "", "bundle", "f", "",
"Path to a bundle (Default: STACK.dsb)") "Path to a Distributed Application Bundle file (Default: STACK.dab)")
} }
func loadBundlefile(stderr io.Writer, namespace string, path string) (*bundlefile.Bundlefile, error) { func loadBundlefile(stderr io.Writer, namespace string, path string) (*bundlefile.Bundlefile, error) {
defaultPath := fmt.Sprintf("%s.dsb", namespace) defaultPath := fmt.Sprintf("%s.dab", namespace)
if path == "" { if path == "" {
path = defaultPath path = defaultPath