7 lines
211 B
Bash
Executable file
7 lines
211 B
Bash
Executable file
#!/bin/sh
|
|
dir="$(dirname $1)"
|
|
cd "$dir"
|
|
echo "[v] scan (new) files of model"
|
|
id="$(basename "$dir" | sed 's/\#//g')"
|
|
cd /usr/src/app
|
|
echo "Model.find($id).add_new_files_later()" | /usr/src/app/bin/rails console
|