Browse Source

Update bundle extension

It's now .dab, for Distributed Application Bundle

Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
(cherry picked from commit 61e2d4240ba266518d0a9a862a88201e54502a88)
Aanand Prasad 9 năm trước cách đây
mục cha
commit
b84206157a
2 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 1 1
      api/client/stack/deploy.go
  2. 2 2
      api/client/stack/opts.go

+ 1 - 1
api/client/stack/deploy.go

@@ -31,7 +31,7 @@ func newDeployCommand(dockerCli *client.DockerCli) *cobra.Command {
 	cmd := &cobra.Command{
 		Use:     "deploy [OPTIONS] STACK",
 		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),
 		RunE: func(cmd *cobra.Command, args []string) error {
 			opts.namespace = args[0]

+ 2 - 2
api/client/stack/opts.go

@@ -15,11 +15,11 @@ func addBundlefileFlag(opt *string, flags *pflag.FlagSet) {
 	flags.StringVarP(
 		opt,
 		"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) {
-	defaultPath := fmt.Sprintf("%s.dsb", namespace)
+	defaultPath := fmt.Sprintf("%s.dab", namespace)
 
 	if path == "" {
 		path = defaultPath