stackbuilders/hapistrano

Add init command that creates a hap.yml file

CristhianMotoche opened this issue · 3 comments

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.

Hey @CristhianMotoche this looks fun. I think I can do it. Could you please assign me this issue?

Hi @FranzGB Thanks for the initiative. There is already a PR (#227) for this, though. Sorry.

No worries. Glad that this has been tackled. Great initiative 🙌