aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2015-12-08 01:59:41 -0500
committerTeddy Wing2015-12-08 01:59:41 -0500
commit8caaf977631f807e7994677a04174c37cb8d0da8 (patch)
treeb075411e56dc70fe635628409300cb17ed6bf726
parent29aaafedef9f34c4ba62fb481fc5e6ba711c7eb7 (diff)
downloadRuby-Web-Sessions-Exercise-8caaf977631f807e7994677a04174c37cb8d0da8.tar.bz2
Makefile: Add `pack` and `clean` tasks
pack: Zips relevant files for distribution clean: Removes the zip file generated in `pack`.
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 25f0dcf..0d0c6c9 100644
--- a/Makefile
+++ b/Makefile
@@ -1,2 +1,8 @@
run:
bundle exec rerun 'ruby app.rb'
+
+pack:
+ zip -r session-exercise.zip . --exclude '.bundle/*' '.git/*' .gitignore 'vendor/*'
+
+clean:
+ rm -f session-exercise.zip