Permalink
Browse files

add tasks to package

  • Loading branch information...
1 parent 3f2d981 commit e3cd48a1f02b972085e3b78603cdcbf0412b5224 @exceedhl exceedhl committed Oct 1, 2011
Showing with 11 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +10 −1 Rakefile
View
@@ -6,3 +6,4 @@
.sudo_as_admin_successful
.vagrant
*.gem
+pkg
View
@@ -1,5 +1,14 @@
require "bundler/gem_tasks"
+desc "clean artifacts"
+task :clean do
+ `rm -rf pkg`
+end
+
+desc "build gem and scripts package"
+task :package => [:build, :package_scripts]
+
task :package_scripts do
-
+ mkdir_p "pkg"
+ `tar zcf pkg/toft_ubuntu_scripts-#{Toft::VERSION}.tar.gz scripts/ubuntu`
end

0 comments on commit e3cd48a

Please sign in to comment.