Class: FRM::PackageRelease
Instance Attribute Summary collapse
-
#component ⇒ Object
readonly
Returns the value of attribute component.
-
#gzipped_package_file ⇒ Object
readonly
Returns the value of attribute gzipped_package_file.
-
#package_file ⇒ Object
readonly
Returns the value of attribute package_file.
-
#packages ⇒ Object
readonly
Returns the value of attribute packages.
-
#priority ⇒ Object
readonly
Returns the value of attribute priority.
-
#release ⇒ Object
readonly
Returns the value of attribute release.
-
#release_file ⇒ Object
readonly
Returns the value of attribute release_file.
-
#short_release_file ⇒ Object
readonly
Returns the value of attribute short_release_file.
-
#standards_version ⇒ Object
readonly
Returns the value of attribute standards_version.
Instance Method Summary collapse
-
#initialize(packages = {}, release = 'natty', component = 'main/binary-amd64') ⇒ PackageRelease
constructor
A new instance of PackageRelease.
Methods inherited from Base
#compute_md5, #compute_sha1, #compute_sha2, #generate_gzip_pipe, #gpg_clearsign, #gpg_detached, #gunzip_pipe, #merge_package_file, #parse_package_stub
Constructor Details
#initialize(packages = {}, release = 'natty', component = 'main/binary-amd64') ⇒ PackageRelease
Returns a new instance of PackageRelease.
31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/frm/deb.rb', line 31 def initialize(packages={},release='natty',component='main/binary-amd64') @release = release @component = component @standards_version = standards_version @priority = priority @packages = [] packages.each { |package| @packages << Package.new(package,@release) } @package_file = generate_package_file @gzipped_package_file = generate_gzip_pipe(@package_file).read @short_release_file = generate_short_release_file @release_file = generate_release_file end |
Instance Attribute Details
#component ⇒ Object (readonly)
Returns the value of attribute component.
30 31 32 |
# File 'lib/frm/deb.rb', line 30 def component @component end |
#gzipped_package_file ⇒ Object (readonly)
Returns the value of attribute gzipped_package_file.
30 31 32 |
# File 'lib/frm/deb.rb', line 30 def gzipped_package_file @gzipped_package_file end |
#package_file ⇒ Object (readonly)
Returns the value of attribute package_file.
30 31 32 |
# File 'lib/frm/deb.rb', line 30 def package_file @package_file end |
#packages ⇒ Object (readonly)
Returns the value of attribute packages.
30 31 32 |
# File 'lib/frm/deb.rb', line 30 def packages @packages end |
#priority ⇒ Object (readonly)
Returns the value of attribute priority.
30 31 32 |
# File 'lib/frm/deb.rb', line 30 def priority @priority end |
#release ⇒ Object (readonly)
Returns the value of attribute release.
30 31 32 |
# File 'lib/frm/deb.rb', line 30 def release @release end |
#release_file ⇒ Object (readonly)
Returns the value of attribute release_file.
30 31 32 |
# File 'lib/frm/deb.rb', line 30 def release_file @release_file end |
#short_release_file ⇒ Object (readonly)
Returns the value of attribute short_release_file.
30 31 32 |
# File 'lib/frm/deb.rb', line 30 def short_release_file @short_release_file end |
#standards_version ⇒ Object (readonly)
Returns the value of attribute standards_version.
30 31 32 |
# File 'lib/frm/deb.rb', line 30 def standards_version @standards_version end |