refactor: remove old code

This commit is contained in:
decentral1se 2021-12-27 04:03:53 +01:00
parent 5cd4317580
commit c13f438580
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
2 changed files with 0 additions and 15 deletions

View File

@ -111,10 +111,6 @@ func ensureAppNameFlag() error {
func NewAction(c *cli.Context) error {
recipe := ValidateRecipeWithPrompt(c)
if err := config.EnsureAbraDirExists(); err != nil {
logrus.Fatal(err)
}
if err := ensureServerFlag(); err != nil {
logrus.Fatal(err)
}

View File

@ -125,17 +125,6 @@ func GetAllFoldersInDirectory(directory string) ([]string, error) {
return folders, nil
}
// EnsureAbraDirExists checks for the abra config folder and throws error if not
func EnsureAbraDirExists() error {
if _, err := os.Stat(ABRA_DIR); os.IsNotExist(err) {
logrus.Debugf("%s does not exist, creating it", ABRA_DIR)
if err := os.Mkdir(ABRA_DIR, 0764); err != nil {
return err
}
}
return nil
}
// ReadAbraShEnvVars reads env vars from an abra.sh recipe file.
func ReadAbraShEnvVars(abraSh string) (map[string]string, error) {
envVars := make(map[string]string)