Skip to content
Browse files

Rake tasks for Chef are deprecated. Use knife for managing cookbooks.

  • Loading branch information...
1 parent 5ef7fc5 commit 25c823fbc61d655fd319a0910a1554fc5259e214 @jtimberman jtimberman committed
Showing with 0 additions and 47 deletions.
  1. +0 −47 Rakefile
View
47 Rakefile
@@ -1,47 +0,0 @@
-require 'rubygems'
-require 'chef'
-require 'json'
-TOPDIR = File.expand_path(File.join(File.dirname(__FILE__), ".."))
-
-
-TOPDIR = File.expand_path(File.join(File.dirname(__FILE__), ".."))
-TEST_CACHE = File.expand_path(File.join(TOPDIR, ".rake_test_cache"))
-COMPANY_NAME = "Opscode, Inc."
-SSL_EMAIL_ADDRESS = "cookbooks@opscode.com"
-NEW_COOKBOOK_LICENSE = :apachev2
-
-load 'chef/tasks/chef_repo.rake'
-task :default => [ :test ]
-
-desc "Build a bootstrap.tar.gz"
-task :build_bootstrap do
- bootstrap_files = Rake::FileList.new
- %w(apache2 runit couchdb stompserver chef passenger ruby packages).each do |cookbook|
- bootstrap_files.include "#{cookbook}/**/*"
- end
-
- tmp_dir = "tmp"
- cookbooks_dir = File.join(tmp_dir, "cookbooks")
- rm_rf tmp_dir
- mkdir_p cookbooks_dir
- bootstrap_files.each do |fn|
- f = File.join(cookbooks_dir, fn)
- fdir = File.dirname(f)
- mkdir_p(fdir) if !File.exist?(fdir)
- if File.directory?(fn)
- mkdir_p(f)
- else
- rm_f f
- safe_ln(fn, f)
- end
- end
-
- chdir(tmp_dir) do
- sh %{tar zcvf bootstrap.tar.gz cookbooks}
- end
-end
-
-# remove unnecessary tasks
-%w{update install roles ssl_cert}.each do |t|
- Rake.application.instance_variable_get('@tasks').delete(t.to_s)
-end

0 comments on commit 25c823f

Please sign in to comment.
Something went wrong with that request. Please try again.