Class: Suppository::Repository
- Inherits:
-
Object
- Object
- Suppository::Repository
- Defined in:
- lib/suppository/repository.rb
Instance Attribute Summary collapse
-
#archs ⇒ Object
readonly
Returns the value of attribute archs.
-
#dists ⇒ Object
readonly
Returns the value of attribute dists.
-
#path ⇒ Object
readonly
Returns the value of attribute path.
-
#suppository ⇒ Object
readonly
Returns the value of attribute suppository.
Instance Method Summary collapse
- #exist? ⇒ Boolean
-
#initialize(path) ⇒ Repository
constructor
A new instance of Repository.
Constructor Details
#initialize(path) ⇒ Repository
Returns a new instance of Repository.
7 8 9 10 11 12 |
# File 'lib/suppository/repository.rb', line 7 def initialize(path) @path = File.(path) @dists = %w[natty lucid precise saucy trusty xenial].sort @archs = %w[amd64 i386].sort @suppository = "#{@path}/.suppository" end |
Instance Attribute Details
#archs ⇒ Object (readonly)
Returns the value of attribute archs.
5 6 7 |
# File 'lib/suppository/repository.rb', line 5 def archs @archs end |
#dists ⇒ Object (readonly)
Returns the value of attribute dists.
5 6 7 |
# File 'lib/suppository/repository.rb', line 5 def dists @dists end |
#path ⇒ Object (readonly)
Returns the value of attribute path.
5 6 7 |
# File 'lib/suppository/repository.rb', line 5 def path @path end |
#suppository ⇒ Object (readonly)
Returns the value of attribute suppository.
5 6 7 |
# File 'lib/suppository/repository.rb', line 5 def suppository @suppository end |
Instance Method Details
#exist? ⇒ Boolean
14 15 16 |
# File 'lib/suppository/repository.rb', line 14 def exist? File.exist? @suppository end |