Exogenesis DSL #16

moonglum opened this Issue Apr 8, 2013 · 1 comment


None yet

2 participants

moonglum commented Apr 8, 2013

@klaustopher suggested that instead of classes, exogenesis "adapters" could be written with a DSL. I thought about it this weekend, and I think that this can be nicely combined with the methods of the executor. So for example this is the translation of the install task from Vundle.

# Define the Vundle Adapter
Exogenesis.describe :vundle do

  # Describe the install task
  install do
    execute_interactive "Install", "vim +BundleInstall\! +qall"
    execute_interactive "Clean", "vim +BundleClean\! +qall"

In this case the setup task would automatically call start_section with :vundle as its argument.
But a task like execute would still need to take a block with Ruby code to check for certain things to skip the task.

What do you think?


Like it 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment