Skip to content

Commit

Permalink
Make it repeatable.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdkent committed Jan 8, 2012
1 parent ec5bdf9 commit 97397b1
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions Rakefile
Expand Up @@ -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)
Expand Down

0 comments on commit 97397b1

Please sign in to comment.