# File lib/vlad.rb, line 59 def self.load options = {} options = {:config => options} if String === options order = [:core, :app, :config, :scm, :web] order += options.keys - order recipes = { :app => :mongrel, :config => 'config/deploy.rb', :core => :core, :scm => :subversion, :web => :apache, }.merge(options) order.each do |flavor| recipe = recipes[flavor] next if recipe.nil? or flavor == :config require "vlad/#{recipe}" end Kernel.load recipes[:config] Kernel.load "config/deploy_#{ENV['to']}.rb" if ENV['to'] end