Class: Debci::HTML
- Inherits:
-
Object
- Object
- Debci::HTML
- Defined in:
- lib/debci/html.rb
Instance Attribute Summary (collapse)
-
- (Object) root_directory
readonly
Returns the value of attribute root_directory.
Instance Method Summary (collapse)
- - (Object) history(package, suite, architecture, filename)
- - (Object) index(filename)
-
- (HTML) initialize(root_directory)
constructor
A new instance of HTML.
- - (Object) package(package, filename)
- - (Object) prefix(prefix, filename)
- - (Object) status(filename)
Constructor Details
- (HTML) initialize(root_directory)
Returns a new instance of HTML
12 13 14 15 16 17 18 |
# File 'lib/debci/html.rb', line 12 def initialize(root_directory) @root_directory = root_directory @repository = Debci::Repository.new @package_prefixes = (('0'..'9').to_a + ('a'..'z').to_a + ('liba'..'libz').to_a).select do |p| @repository.search('^' + p).size > 0 end.sort end |
Instance Attribute Details
- (Object) root_directory (readonly)
Returns the value of attribute root_directory
10 11 12 |
# File 'lib/debci/html.rb', line 10 def root_directory @root_directory end |
Instance Method Details
- (Object) history(package, suite, architecture, filename)
38 39 40 41 42 43 44 45 46 47 |
# File 'lib/debci/html.rb', line 38 def history(package, suite, architecture, filename) @package = package @suite = suite @architecture = architecture @packages_dir = 'data/packages' @package_dir = File.join(suite, architecture, package.prefix, package.name) @autopkgtest_dir = 'data/autopkgtest' @site_url = 'http://ci.debian.net' (:history, filename) end |
- (Object) index(filename)
20 21 22 |
# File 'lib/debci/html.rb', line 20 def index(filename) (:index, filename) end |
- (Object) package(package, filename)
28 29 30 31 |
# File 'lib/debci/html.rb', line 28 def package(package, filename) @package = package (:package, filename) end |
- (Object) prefix(prefix, filename)
33 34 35 36 |
# File 'lib/debci/html.rb', line 33 def prefix(prefix, filename) @prefix = prefix (:packagelist, filename) end |
- (Object) status(filename)
24 25 26 |
# File 'lib/debci/html.rb', line 24 def status(filename) (:status, filename) end |