summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authormokha <mokha@cisco.com>2019-05-06 20:05:14 -0600
committermokha <mokha@cisco.com>2019-05-06 20:05:14 -0600
commitceb4ae9d2f35ff960d017927572ffbc2327a4d59 (patch)
tree79ca5388c40aacddadc0f355cc7593c5c75bf9ea /Rakefile
parenta584234d4b3cbc0d33bc50382616db6483c8cc22 (diff)
create package task to package up the assignment
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/Rakefile b/Rakefile
index 56c4c97..3e0859d 100644
--- a/Rakefile
+++ b/Rakefile
@@ -8,4 +8,12 @@ task :test do
sh 'mvn test'
end
+desc "Package assignment"
+task :package do
+ sh 'rm -fr tmp/assignment1/'
+ sh 'mkdir -p tmp/assignment1/'
+ sh 'cp -r src/ tmp/assignment1'
+ sh 'cd tmp/ && zip -r assignment1.zip assignment1'
+end
+
task default: [:test]