Class: FRM::PackageRelease

Inherits:
Base
  • Object
show all
Defined in:
lib/frm/deb.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#componentObject (readonly)

Returns the value of attribute component.



30
31
32
# File 'lib/frm/deb.rb', line 30

def component
  @component
end

#gzipped_package_fileObject (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_fileObject (readonly)

Returns the value of attribute package_file.



30
31
32
# File 'lib/frm/deb.rb', line 30

def package_file
  @package_file
end

#packagesObject (readonly)

Returns the value of attribute packages.



30
31
32
# File 'lib/frm/deb.rb', line 30

def packages
  @packages
end

#priorityObject (readonly)

Returns the value of attribute priority.



30
31
32
# File 'lib/frm/deb.rb', line 30

def priority
  @priority
end

#releaseObject (readonly)

Returns the value of attribute release.



30
31
32
# File 'lib/frm/deb.rb', line 30

def release
  @release
end

#release_fileObject (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_fileObject (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_versionObject (readonly)

Returns the value of attribute standards_version.



30
31
32
# File 'lib/frm/deb.rb', line 30

def standards_version
  @standards_version
end