module Polisher::Git::PkgAttributes
Attributes
dirty_spec[RW]
name[RW]
version[RW]
Public Instance Methods
dead?()
click to toggle source
Return boolean indicating if package is marked as dead (retired/obsolete/etc)
# File lib/polisher/git/pkg/attributes.rb, line 55 def dead? in_repo { File.exist?('dead.package') } end
path()
click to toggle source
Override path to reference pkg name @override
# File lib/polisher/git/pkg/attributes.rb, line 50 def path GitCache.path_for(rpm_name) end
pkg_files()
click to toggle source
Files representing pkg tracked by git
# File lib/polisher/git/pkg/attributes.rb, line 44 def pkg_files @pkg_files ||= [spec_file, 'sources', '.gitignore'] end
rpm_name()
click to toggle source
Return full rpm name of package containing optional prefix
# File lib/polisher/git/pkg/attributes.rb, line 18 def rpm_name @rpm_name ||= "#{rpm_prefix}#{name}" end
spec()
click to toggle source
Return handle to instance of Polisher::RPM::Spec
corresponding to spec
# File lib/polisher/git/pkg/attributes.rb, line 38 def spec @spec, @dirty_spec = nil, false if @dirty_spec @spec ||= in_repo { Polisher::RPM::Spec.parse File.read(spec_file) } end
spec?()
click to toggle source
Return boolean indicating if spec file exists
# File lib/polisher/git/pkg/attributes.rb, line 33 def spec? include? spec_file end
spec_file()
click to toggle source
Return full spec file name
# File lib/polisher/git/pkg/attributes.rb, line 28 def spec_file @spec_path ||= "#{rpm_name}.spec" end
srpm()
click to toggle source
Return full srpm file name of package
# File lib/polisher/git/pkg/attributes.rb, line 23 def srpm @srpm ||= "#{rpm_name}-#{version}-1.*.src.rpm" end