Skip to content

Commit

Permalink
gem tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
rkh committed Apr 15, 2010
1 parent 4493c15 commit 95ab94a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 3 deletions.
10 changes: 10 additions & 0 deletions 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
5 changes: 3 additions & 2 deletions tasks/git.task
Expand Up @@ -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


2 changes: 1 addition & 1 deletion tasks/spec.task
Expand Up @@ -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.