samson
samson copied to clipboard
Get project configuration from a ".samson.yml"
It could be great to be able to define the stages and associated commands to run from a YML files like travis and co...
deploy:
stages:
demo:
command:
permalink:
confirm:
e-mail:
...
Sansom will
- clone the project
- Get and parse the
.samson.yml - Identify and create the different stages / commands
you could set up a rake task that deletes everything and sets it up by reading samson.yml
@grosser : Yes, or have it that way as every good product do : Descriptive and version controlled among the project source :)
I was suggesting to check in the samson.yml and then have a rake task delete all existing commands and fill the commands from the yml file, would that work ?
Yes for sure, let's try that and make it evolve later if needed.
Do you want me to do that or some body of the samson Team will take it ? Because I am kind a nooby in development, but I will be glad to have some directions and try :)
You should give it a try :)
I've started working on a project that allows you to build up your projects / stages / commands from yaml using Ansible. It's still a work in progress, but projects, stages and commands seem to work OK. Programming around the Samson API is tricky because it's not restful and not all endpoints support JSON. It might be useful to you if you're still using Samson.
https://github.com/danihodovic/ansible-samson