module Polisher::RPM

Public Class Methods

current_author() click to toggle source

Return the currently configured author

# File lib/polisher/rpm.rb, line 19
def self.current_author
  ENV['POLISHER_AUTHOR'] || packager || Spec::AUTHOR
end
packager() click to toggle source

Use rpmdev-packager if it’s available

# File lib/polisher/rpm.rb, line 11
def self.packager
  require 'awesome_spawn'

  @packager ||= AwesomeSpawn.run('/usr/bin/rpmdev-packager').output.chop
rescue AwesomeSpawn::NoSuchFileError
end