module Polisher::Git::PkgBuilder
Public Instance Methods
build()
click to toggle source
Build the pkg
# File lib/polisher/git/pkg/builder.rb, line 40 def build build_srpm scratch_build self end
build_srpm()
click to toggle source
Build the srpm
# File lib/polisher/git/pkg/builder.rb, line 10 def build_srpm require 'awesome_spawn' require_cmd! pkg_cmd in_repo do begin gem = spec.upstream_gem FileUtils.rm_f gem.file_name if File.exist?(gem.file_name) FileUtils.ln_s gem.gem_path, gem.file_name result = AwesomeSpawn.run "#{pkg_cmd} srpm" raise result.error unless result.exit_status == 0 ensure FileUtils.rm_f gem.file_name if File.exist?(gem.file_name) end end self end
scratch_build()
click to toggle source
Run a scratch build
# File lib/polisher/git/pkg/builder.rb, line 29 def scratch_build require 'polisher/targets/koji' in_repo do Koji.build :srpm => srpm, :scratch => true end self end