// CleanupStepWorkDir ... func CleanupStepWorkDir() error { stepYMLPth := filepath.Join(configs.BitriseWorkDirPath, "current_step.yml") if err := cmdex.RemoveFile(stepYMLPth); err != nil { return errors.New(fmt.Sprint("Failed to remove step yml: ", err)) } stepDir := configs.BitriseWorkStepsDirPath if err := cmdex.RemoveDir(stepDir); err != nil { return errors.New(fmt.Sprint("Failed to remove step work dir: ", err)) } return nil }
func initEnvStore(c *cli.Context) { log.Debugln("[ENVMAN] - Work path:", envman.CurrentEnvStoreFilePath) clear := c.Bool(ClearKey) if clear { if err := cmdex.RemoveFile(envman.CurrentEnvStoreFilePath); err != nil { log.Fatal("[ENVMAN] - Failed to clear path:", err) } } if err := envman.InitAtPath(envman.CurrentEnvStoreFilePath); err != nil { log.Fatal("[ENVMAN] - Failed to init at path:", err) } log.Debugln("[ENVMAN] - Initialized") }