Permalink
Browse files

Make it repeatable.

  • Loading branch information...
mdkent committed Jan 8, 2012
1 parent ec5bdf9 commit 97397b1084bcbd0ef575900014e21ca1b0f7a29e
Showing with 11 additions and 5 deletions.
  1. +11 −5 Rakefile
View
@@ -8,16 +8,22 @@ PACKAGE_DIR = "tmp"
INCLUDE_FILES = "**/*"
EXCLUDE_FILES = "tmp"
-Rake::PackageTask.new(PACKAGE_NAME, PACKAGE_VERSION) do |p|
- p.package_dir = PACKAGE_DIR
- p.need_tar_gz = true
- p.package_files.include(*INCLUDE_FILES)
- p.package_files.exclude(*EXCLUDE_FILES)
+def load_package_task
+ Rake::PackageTask.new(PACKAGE_NAME, PACKAGE_VERSION) do |p|
+ p.package_dir = PACKAGE_DIR
+ p.need_tar_gz = true
+ p.package_files.include(*INCLUDE_FILES)
+ p.package_files.exclude(*EXCLUDE_FILES)
+ end
end
desc "Build a bootstrap tar.gz"
task :build_bootstrap do
rm_rf PACKAGE_DIR
+
+ # Delay until after cleanup, also don't need the other tasks it provides
+ load_package_task
+
Rake::Task[ "package" ].invoke
# Package again, chef-solo requires cookbooks/ in path (CHEF-2001)

0 comments on commit 97397b1

Please sign in to comment.