Skip to content

Commit

Permalink
Exclude .git, spec, and coverage reports from package
Browse files Browse the repository at this point in the history
There's no need for a packaged admin buildpack to contain all of the
test artifacts, coverage reports, or git repository so exclude them
from the zip when it's created.
  • Loading branch information
sykesm committed May 10, 2014
1 parent 9f265d1 commit 85f4fec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .package-exclude
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
.*
coverage/*
spec/*
Rakefile
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ task :package, [:zipfile, :hosts] do |t, args|
system("find #{dest} -type f -exec chmod a+r {} \\;")
system("find #{dest} -type d -exec chmod a+rx {} \\;")
system("chmod a+rx #{dest}/bin/*")
system("cd #{dest} && zip -r #{zipfile} .")
system("cd #{dest} && zip -r #{zipfile} [email protected] .")
end
end

0 comments on commit 85f4fec

Please sign in to comment.