Class: Bozo::Packagers::Rubygems

Inherits:
Object
  • Object
show all
Defined in:
lib/bozo/packagers/rubygems.rb

Overview

Specifies gem packager.

Builds any ‘*.gemspec’ file in the root directory

Defined Under Namespace

Classes: RubyGemVersion

Instance Method Summary collapse

Instance Method Details

#executeObject



8
9
10
11
12
13
14
# File 'lib/bozo/packagers/rubygems.rb', line 8

def execute
  dist_dir = File.expand_path(File.join('dist', 'gem'))
  FileUtils.mkdir_p dist_dir

  Dir['*.gemspec'].each { |spec| build_gem spec }
  Dir['*.gem'].each { |file| FileUtils.mv file, File.join(dist_dir, file) }
end