示例#1
0
文件: migrate.go 项目: tsuru/tsuru
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,
	})
}
示例#2
0
文件: migrate.go 项目: 4eek/tsuru
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)
}