Add init command that creates a hap.yml file
CristhianMotoche opened this issue · 3 comments
CristhianMotoche commented
It would be nice to have a command that automatically generates a Yaml sample file:
$ hapistrano init
> Generated sample hap.yml file
$ cat hap.yml
host: user@myserver.com
port: 2222
repo: 'https://github.com/user/repo.git'
revision: origin/main
build_script:
- echo 'Build steps'
restart_command: echo 'Restart command'
It won't overwrite the existing file:
$ hap init
> ERROR: There is already a hap.yml file in the current directory.
FranzGB commented
Hey @CristhianMotoche this looks fun. I think I can do it. Could you please assign me this issue?
CristhianMotoche commented
FranzGB commented
No worries. Glad that this has been tackled. Great initiative 🙌