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

Version Path
bozo-scripts-0.1.11 lib/bozo/packagers/rubygems.rb
bozo-scripts-0.1.6 lib/bozo/packagers/rubygems.rb
iisconfig-0.0.1.pre2 build/bundler/ruby/1.9.1/bundler/gems/bozo-scripts-950046ad1602/lib/bozo/packagers/rubygems.rb
iisconfig-0.0.1.pre1 build/bundler/ruby/1.9.1/bundler/gems/bozo-scripts-950046ad1602/lib/bozo/packagers/rubygems.rb