Class: Buildozer::Model::Package
- Inherits:
-
Object
- Object
- Buildozer::Model::Package
- Defined in:
- lib/buildozer/model/package.rb
Instance Attribute Summary collapse
-
#architecture ⇒ Object
Returns the value of attribute architecture.
-
#archive ⇒ Object
Returns the value of attribute archive.
-
#depends ⇒ Object
Returns the value of attribute depends.
-
#includes ⇒ Object
Returns the value of attribute includes.
-
#maintainer ⇒ Object
Returns the value of attribute maintainer.
-
#name ⇒ Object
Returns the value of attribute name.
-
#provides ⇒ Object
Returns the value of attribute provides.
-
#revision ⇒ Object
Returns the value of attribute revision.
-
#url ⇒ Object
Returns the value of attribute url.
-
#version ⇒ Object
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(options) ⇒ Package
constructor
A new instance of Package.
Constructor Details
#initialize(options) ⇒ Package
Returns a new instance of Package.
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/buildozer/model/package.rb', line 9 def initialize() @name = .fetch(:name) @version = .fetch(:version) @revision = .fetch(:revision, nil) @archive = .fetch(:archive, "#{@name}-#{@version}") @url = .fetch(:url) @architecture = .fetch(:architecture, :auto) @maintainer = .fetch(:maintainer, nil) @provides = .fetch(:provides, []) @depends = .fetch(:depends, []) @includes = .fetch(:includes, []) end |
Instance Attribute Details
#architecture ⇒ Object
Returns the value of attribute architecture.
4 5 6 |
# File 'lib/buildozer/model/package.rb', line 4 def architecture @architecture end |
#archive ⇒ Object
Returns the value of attribute archive.
4 5 6 |
# File 'lib/buildozer/model/package.rb', line 4 def archive @archive end |
#depends ⇒ Object
Returns the value of attribute depends.
4 5 6 |
# File 'lib/buildozer/model/package.rb', line 4 def depends @depends end |
#includes ⇒ Object
Returns the value of attribute includes.
4 5 6 |
# File 'lib/buildozer/model/package.rb', line 4 def includes @includes end |
#maintainer ⇒ Object
Returns the value of attribute maintainer.
4 5 6 |
# File 'lib/buildozer/model/package.rb', line 4 def maintainer @maintainer end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/buildozer/model/package.rb', line 4 def name @name end |
#provides ⇒ Object
Returns the value of attribute provides.
4 5 6 |
# File 'lib/buildozer/model/package.rb', line 4 def provides @provides end |
#revision ⇒ Object
Returns the value of attribute revision.
4 5 6 |
# File 'lib/buildozer/model/package.rb', line 4 def revision @revision end |
#url ⇒ Object
Returns the value of attribute url.
4 5 6 |
# File 'lib/buildozer/model/package.rb', line 4 def url @url end |
#version ⇒ Object
Returns the value of attribute version.
4 5 6 |
# File 'lib/buildozer/model/package.rb', line 4 def version @version end |