Class: Depend::Configuration
- Inherits:
-
Object
- Object
- Depend::Configuration
- Defined in:
- lib/depend/configuration.rb
Instance Attribute Summary collapse
-
#apt_dependencies ⇒ Object
Returns the value of attribute apt_dependencies.
-
#default_dependencies ⇒ Object
Returns the value of attribute default_dependencies.
-
#homebrew_dependencies ⇒ Object
Returns the value of attribute homebrew_dependencies.
Instance Method Summary collapse
- #dependencies_for_apt=(deps = []) ⇒ Object
- #dependencies_for_default=(deps = []) ⇒ Object
- #dependencies_for_homebrew=(deps = []) ⇒ Object
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 |
# File 'lib/depend/configuration.rb', line 5 def initialize @default_dependencies = [] @homebrew_dependencies = [] @apt_dependencies = [] end |
Instance Attribute Details
#apt_dependencies ⇒ Object
Returns the value of attribute apt_dependencies.
3 4 5 |
# File 'lib/depend/configuration.rb', line 3 def apt_dependencies @apt_dependencies end |
#default_dependencies ⇒ Object
Returns the value of attribute default_dependencies.
3 4 5 |
# File 'lib/depend/configuration.rb', line 3 def default_dependencies @default_dependencies end |
#homebrew_dependencies ⇒ Object
Returns the value of attribute homebrew_dependencies.
3 4 5 |
# File 'lib/depend/configuration.rb', line 3 def homebrew_dependencies @homebrew_dependencies end |
Instance Method Details
#dependencies_for_apt=(deps = []) ⇒ Object
19 20 21 |
# File 'lib/depend/configuration.rb', line 19 def dependencies_for_apt=(deps = []) @apt_dependencies = deps end |
#dependencies_for_default=(deps = []) ⇒ Object
11 12 13 |
# File 'lib/depend/configuration.rb', line 11 def dependencies_for_default=(deps = []) @default_dependencies = deps end |
#dependencies_for_homebrew=(deps = []) ⇒ Object
15 16 17 |
# File 'lib/depend/configuration.rb', line 15 def dependencies_for_homebrew=(deps = []) @homebrew_dependencies = deps end |