summaryrefslogtreecommitdiff
path: root/lib/tasks/gems.rake
blob: 27eb04c74e8439ef9a011714a95fb65f46e4142c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
require File.expand_path('../task_helper', __FILE__)
include TaskHelper


namespace :gem do

  desc "run rake gem for all gems"
  task :build => :clear do
    each_gem do |gem_name|
      putsys "cd #{gem_name} && bundle exec rake gem"
    end
    putsys "bundle exec rake gem"
  end
  
  desc "run rake gem for all gems"
  task :clear do
    each_gem do |gem_name|
      putsys "rm -rf #{gem_name}/pkg"
    end
    putsys "rm -rf pkg"
  end
  
  desc "run gem install for all gems"
  task :install => :build do

    each_gem do |gem_name|
      putsys "cd #{gem_name}/pkg && gem install leap_web_#{gem_name}-#{LeapWeb::VERSION}.gem"
    end
    putsys "gem install pkg/leap_web-#{LeapWeb::VERSION}.gem"
  end

  desc "Release all gems to gemcutter. Package leap web components, then push"
  task :release do

    each_gem do |gem_name|
      putsys "cd #{gem_name}/pkg && gem push leap_web_#{gem_name}-#{LeapWeb::VERSION}.gem"
    end
    putsys "gem push pkg/leap_web-#{LeapWeb::VERSION}.gem"
  end
end