Permalink
Fetching contributors…
Cannot retrieve contributors at this time
11 lines (10 sloc) 386 Bytes
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
system "cd #{subproject.name} && gem push *.gem && cd .."
end
end