Permalink
Browse files

gem tasks

  • Loading branch information...
1 parent 4493c15 commit 95ab94a1f98678b4a62f8b81d62c848cab7852aa @rkh committed Apr 15, 2010
Showing with 14 additions and 3 deletions.
  1. +10 −0 tasks/gem.task
  2. +3 −2 tasks/git.task
  3. +1 −1 tasks/spec.task
View
10 tasks/gem.task
@@ -0,0 +1,10 @@
+project_namespace :gem do
+ desc "remove all *.gem files"
+ project_task(:clear) { sh "cd #{subproject.name} && rm -f *.gem && cd .." }
+ desc "generate gems"
+ project_task(:build) { sh "cd #{subproject.name} && gem build *.gemspec && cd .." }
+ desc "publish gems"
+ project_task :publish => [:clear, :build] do
+ sh "cd #{subproject.name} && gem push *.gem && cd .."
+ end
+end
View
5 tasks/git.task
@@ -16,18 +16,19 @@ namespace :git do
task(:pull => :header) { system "git pull --no-ff" }
task(:push => :header) { system "git push" }
task(:diff => :header) { system "git diff" }
+ task(:tags => :header) { system "git push --tags" }
end
task :status => "big_band:status"
task :pull => "big_band:pull"
task :push => "big_band:push"
task :diff => "big_band:diff"
+ task :tags => "big_band:tags"
end
project_namespace :git do
git_task :status
git_task :pull, "pull --no-ff"
git_task :push
git_task :diff
+ git_task :tags, "push --tags"
end
-
-
View
2 tasks/spec.task
@@ -21,4 +21,4 @@ task(:spec) { rspec "{*,.}/#{pattern}" }
namespace :spec do
desc "run only specs for big_band meta project"
task(:big_band) { rspec pattern }
-end
+end

0 comments on commit 95ab94a

Please sign in to comment.