require 'rubygems' require 'rake/rdoctask' require 'merb-core' require 'merb-core/tasks/merb' require 'spec' require 'spec/rake/spectask' # Load chef and chef-server slice from source rather than gem, if present [ 'chef', 'chef-server-slice' ].each do |lib| library = File.join(File.dirname(__FILE__), "..", lib, "lib", "#{lib}.rb") require library if File.exists?(library) end require 'chef' unless defined?(Chef) include FileUtils GEM = "chef-server" CHEF_SERVER_VERSION = "0.7.12" AUTHOR = "Opscode" EMAIL = "chef@opscode.com" HOMEPAGE = "http://wiki.opscode.com/display/chef" SUMMARY = "A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure." # Load the basic runtime dependencies; this will include # any plugins and therefore plugin rake tasks. init_env = ENV['MERB_ENV'] || 'rake' Merb.load_dependencies(:environment => init_env) # Get Merb plugins and dependencies Merb::Plugins.rakefiles.each { |r| require r } # Load any app level custom rakefile extensions from lib/tasks tasks_path = File.join(File.dirname(__FILE__), "lib", "tasks") rake_files = Dir["#{tasks_path}/*.rake"] rake_files.each{|rake_file| load rake_file } desc "Start runner environment" task :merb_env do Merb.start_environment(:environment => init_env, :adapter => 'runner') end require 'spec/rake/spectask' require 'merb-core/test/tasks/spectasks' desc 'Default: run spec examples' task :default => 'spec' ############################################################################## # ADD YOUR CUSTOM TASKS IN /lib/tasks # NAME YOUR RAKE FILES file_name.rake ##############################################################################