Exemplo n.º 1
0
func (c *migrateCmd) Run(context *cmd.Context, client *cmd.Client) error {
	return migration.Run(migration.RunArgs{
		Writer: context.Stdout,
		Dry:    c.dry,
		Name:   c.name,
		Force:  c.force,
	})
}
Exemplo n.º 2
0
func (c *migrateCmd) Run(context *cmd.Context, client *cmd.Client) error {
	err := migration.Register("migrate-docker-images", c.migrateImages)
	if err != nil {
		return err
	}
	err = migration.Register("migrate-pool", c.migratePool)
	if err != nil {
		return err
	}
	err = migration.Register("migrate-set-pool-to-app", c.setPoolToApps)
	if err != nil {
		return err
	}
	return migration.Run(context.Stdout, c.dry)
}