Class: Debci::HTML::Rooted

Inherits:
Object
  • Object
show all
Defined in:
lib/debci/html.rb

Direct Known Subclasses

Autopkgtest, Feed, JSON, PackageJSON

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeRooted

Returns a new instance of Rooted.



87
88
89
90
# File 'lib/debci/html.rb', line 87

def initialize
  data_basedir = Debci.config.data_basedir
  @root = Pathname(data_basedir) / datadir
end

Instance Attribute Details

#rootObject (readonly)

Returns the value of attribute root.



81
82
83
# File 'lib/debci/html.rb', line 81

def root
  @root
end

Instance Method Details

#datadirObject



83
84
85
# File 'lib/debci/html.rb', line 83

def datadir
  'packages'
end

#repositoryObject



92
93
94
# File 'lib/debci/html.rb', line 92

def repository
  @repository ||= Debci::Repository.new
end