Skip to content

Instantly share code, notes, and snippets.

@aokolish
Created February 10, 2013 20:04
Show Gist options
  • Save aokolish/4750865 to your computer and use it in GitHub Desktop.
Save aokolish/4750865 to your computer and use it in GitHub Desktop.
how to get spinach working with zeus
zeus init # => creates custom_plan.rb and zeus.json
require 'zeus/rails'
class CustomPlan < Zeus::Rails
def spinach_environment
require 'spinach'
end
def spinach
spinach_main = Spinach::Cli.new(ARGV.dup)
exit spinach_main.run
end
end
Zeus.plan = CustomPlan.new
{
"command": "ruby -rubygems -r./custom_plan -eZeus.go",
"plan": {
"boot": {
"default_bundle": {
"development_environment": {
"prerake": {"rake": []},
"runner": ["r"],
"console": ["c"],
"server": ["s"],
"generate": ["g"],
"destroy": ["d"],
"dbconsole": []
},
"test_environment": {
"spinach_environment": {"spinach": []},
"test_helper": {"test": ["rspec", "testrb"]}
}
}
}
}
@aokolish
Copy link
Author

this also removes the cucumber environment

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