Sha256: d3bcdef51f80d1e860611c0742d9644a9560b828eca4ba0f2e36194a02710c5d
Contents?: true
Size: 516 Bytes
Versions: 4
Compression:
Stored size: 516 Bytes
Contents
module Bozo::Packagers # Specifies gem packager. # # Builds any '*.gemspec' file in the root directory class Rubygems 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 private def build_gem(spec) execute_command :rubygems, ['gem', 'build', spec] end end end
Version data entries
4 entries across 4 versions & 2 rubygems