Today I'm fighting against this:
mkdir': Permission denied @ dir_s_mkdir - /app/assets/stylesheets/material_ui (Errno::EACCES)
I'm creating my own rails composer generator. What I want is clone from my repo some files and put them inside the app I'm generating when I call rails new etc etc...
. The generator works well (it clones a lot of files, it even unzips a big font folder!) and all the recipes do their work except one.
This one contains (among others) this line
empty_directory '/app/assets/stylesheets/material_ui'
This Thor action fails saying 'permission denied'.
Of course I cannot CHMOD anything before, because there is not any folder until I launch the rails new
command.
How can I create a directory in a rails composer recipe using Thor?