Permalink
Browse files

clean task

  • Loading branch information...
1 parent a15d3aa commit 3c5ad8e8c50bdb7063df85c2dfa89b6e71943b40 @timbertson committed Jan 3, 2009
Showing with 28 additions and 0 deletions.
  1. +5 −0 .gitignore
  2. +23 −0 Capfile
View
@@ -1 +1,6 @@
*.pyc
+build
+dist
+.coverage
+*.egg-info
+
View
23 Capfile
@@ -0,0 +1,23 @@
+desc 'build'
+task :build do
+ `rm -i dist/*`
+ `./setup.py bdist_egg`
+end
+
+desc 'upload to cheese shop'
+task :upload_ do
+ `./setup.py bdist_egg upload`
+end
+
+desc 'clean'
+task :clean do
+ `rm -rf build dist`
+end
+
+desc 'copy (to=dest_dir)'
+task :copy do
+ dest = ENV['to'] or raise('please specify `to`')
+ `rm -i "#{dest}/mocktest*.egg"`
+ `cp -i dist/mocktest*.egg '#{dest}'`
+ puts "Done!"
+end

0 comments on commit 3c5ad8e

Please sign in to comment.